From: NeilBrown Date: Tue, 26 Oct 2010 06:41:22 +0000 (+1100) Subject: md/raid1: perform mem allocation before disabling writes during resync. X-Git-Tag: v2.6.37-rc1~43^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c4588e9c19cae6209a28c9da2f16a18a610b935;p=pandora-kernel.git 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 --- Reading git-diff-tree failed