]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit040ec55702d169cd2f9c9dc3f195df6322a5cfd8
tree18f2235f3a8992a702f5d75e8c9f608076b01952
parent4737c55165a60b20373c8b704f1f0a17bc614204
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