From: NeilBrown Date: Thu, 13 Jan 2011 22:14:33 +0000 (+1100) Subject: md: md_stop_writes requires mddev_lock. X-Git-Tag: v2.6.38-rc1~222^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=defad61a5b16352d3e22a04d4c930a5b5a7fd1f0;p=pandora-kernel.git md: md_stop_writes requires mddev_lock. As md_stop_writes manipulates the sync_thread and calls md_update_sb, it need to be called with mddev_lock held. In all internal cases it is, but the symbol is exported for dm-raid to call and in that case the lock won't be help. Do make an exported version which takes the lock, and an internal version which does not. Signed-off-by: NeilBrown --- Reading git-diff-tree failed