From: NeilBrown Date: Sun, 18 Nov 2012 23:47:48 +0000 (+1100) Subject: md: make sure everything is freed when dm-raid stops an array. X-Git-Tag: v3.7-rc7~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eff3c439d3478ba9e8ba5f8c0aaf6e6fadb6e58;p=pandora-kernel.git md: make sure everything is freed when dm-raid stops an array. md_stop() would stop an array, but not free various attached data structures. For internal arrays, these are freed later in do_md_stop() or mddev_put(), but they don't apply for dm-raid arrays. So get md_stop() to free them, and only all it from dm-raid. For internal arrays we now call __md_stop. Reported-by: majianpeng Signed-off-by: NeilBrown --- Reading git-diff-tree failed