]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5.c: add proper locking to error path of raid5_start_reshape.
authorNeilBrown <neilb@suse.de>
Wed, 11 Sep 2013 00:53:45 +0000 (10:53 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 24 Oct 2013 02:39:58 +0000 (13:39 +1100)
commitd9208eac801f23ed50c23baee002cbcf42ce063a
treebbcb3130de56436584003fff59664ee618d07c7c
parentd47648fcf0611812286f68131b40251c6fa54f5e
md/raid5.c: add proper locking to error path of raid5_start_reshape.

If raid5_start_reshape errors out, we need to reset all the fields
that were updated (not just some), and need to use the seq_counter
to ensure make_request() doesn't use an inconsitent state.

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