]> git.baikalelectronics.ru Git - kernel.git/commit
MD: move thread wakeups into resume
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 7 Jun 2011 22:49:36 +0000 (17:49 -0500)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 05:11:31 +0000 (15:11 +1000)
commit1de8a7d7f6af5dcd9418168f67bb8a72c7e65bc2
treef95ebb9ec9111dc87ad8037ff7e07da802d924e3
parentfe5177af6088a0f92805efe1e2615be6cfdd6c21
MD: move thread wakeups into resume

Move personality and sync/recovery thread starting outside md_run.

Moving the wakeup's of the personality and sync/recovery threads out of
md_run and into do_md_run and mddev_resume solves two issues:
1) It allows bitmap_load to be called before the sync_thread is run and
2) when MD personalities are used by device-mapper (dm-raid.c), the start-up
of the array is better alligned with device-mapper primatives
(CTR/resume/suspend/DTR).  I/O - in this case, recovery operations - should
not happen until after a resume has taken place.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c