]> git.baikalelectronics.ru Git - kernel.git/commit
md: stop write should stop journal reclaim
authorShaohua Li <shli@fb.com>
Mon, 21 Nov 2016 18:29:19 +0000 (10:29 -0800)
committerShaohua Li <shli@fb.com>
Thu, 24 Nov 2016 03:30:25 +0000 (19:30 -0800)
commit996f588edf7a5b3b05fa35fd770c177ff777bc3e
treede4cf540bbc599d64105a06a5b7d259363ca8db7
parent4be7b910a5f282bc3033da840457776338686f61
md: stop write should stop journal reclaim

__md_stop_writes currently doesn't stop raid5-cache reclaim thread. It's
possible the reclaim thread is still running and doing write, which
doesn't match what __md_stop_writes should do. The extra ->quiesce()
call should not harm any raid types. For raid5-cache, this will
guarantee we reclaim all caches before we update superblock.

Signed-off-by: Shaohua Li <shli@fb.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Cc: Song Liu <songliubraving@fb.com>
drivers/md/md.c