commit | 1c4588e9c19cae6209a28c9da2f16a18a610b935 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Tue Oct 26 17:41:22 2010 +1100 |
committer | NeilBrown <neilb@suse.de> | Thu Oct 28 17:36:09 2010 +1100 |
tree | 74ffb14a5586c3a297b0fd372be5b72cf7e53bcd | |
parent | 6746557f0325a66f57d179126426e38a8ea66945 [diff] |
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>