md/raid5.c: add proper locking to error path of raid5_start_reshape.
authorNeilBrown <neilb@suse.de>
Thu, 14 Nov 2013 04:16:15 +0000 (15:16 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 14 Nov 2013 04:16:15 +0000 (15:16 +1100)
commitba8805b97320416e7c5bb8f55d2bd06d5c319e7d
tree18f2235f3a8992a702f5d75e8c9f608076b01952
parent02e5f5c0a0f726e66e3d8506ea1691e344277969
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