From: NeilBrown Date: Tue, 27 Aug 2013 05:52:13 +0000 (+1000) Subject: md/raid5: use seqcount to protect access to shape in make_request. X-Git-Tag: v3.12-rc1~71^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46501b2deaa06efcaaf82917281941f02c6b307;p=pandora-kernel.git md/raid5: use seqcount to protect access to shape in make_request. make_request() access various shape parameters (raid_disks, chunk_size etc) which might be changed by raid5_start_reshape(). If the later is called at and awkward time during the form, the wrong stripe_head might be used. So introduce a 'seqcount' and after finding a stripe_head make sure there is no reason to expect that we got the wrong one. Signed-off-by: NeilBrown --- Reading git-diff-tree failed