NeilBrown defad61a5b 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 <neilb@suse.de>
2011-01-14 09:14:33 +11:00
..
2010-08-12 04:14:13 +01:00
2010-08-12 04:14:11 +01:00
2010-08-12 04:14:32 +01:00
2010-08-12 04:14:12 +01:00
2010-08-12 04:14:08 +01:00
2010-09-10 12:35:38 +02:00
2011-01-14 09:14:33 +11:00
2010-09-10 12:35:38 +02:00
2010-09-10 12:35:38 +02:00
2010-10-29 16:40:33 +11:00
2010-09-10 12:35:38 +02:00