]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1: perform mem allocation before disabling writes during resync.
authorNeilBrown <neilb@suse.de>
Tue, 26 Oct 2010 06:41:22 +0000 (17:41 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 28 Oct 2010 06:36:09 +0000 (17:36 +1100)
commitbf780fcce7e18c075cfa195cb095179a863edbe3
tree74ffb14a5586c3a297b0fd372be5b72cf7e53bcd
parentf7182e03adcc6207fdb39f4c05c351f234fcaeba
md/raid1: perform mem allocation before disabling writes during resync.

Though this mem alloc is GFP_NOIO an so will not deadlock, it seems
better to do the allocation before 'raise_barrier' which stops any IO
requests while the resync proceeds.

raid10 always uses this order, so it is at least consistent to do the
same in raid1.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c