]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: update analysis state for failed stripe
authorShaohua Li <shli@fb.com>
Fri, 18 Sep 2015 17:20:13 +0000 (10:20 -0700)
committerNeilBrown <neilb@suse.com>
Fri, 2 Oct 2015 07:23:43 +0000 (17:23 +1000)
commit1bac81f3a10fa3ccff8ae9b77e3e0862c189f170
treebb3995ca492ded73273329f69791cf814b5dfdbe
parenta07c2a847dcce315d5d5a4fe10354c1457c07a0f
raid5: update analysis state for failed stripe

handle_failed_stripe() makes the stripe fail, eg, all IO will return
with a failure, but it doesn't update stripe_head_state. Later
handle_stripe() has special handling for raid6 for handle_stripe_fill().
That check before handle_stripe_fill() doesn't skip the failed stripe
and we get a kernel crash in need_this_block.  This patch clear the
analysis state to make sure no functions wrongly called after
handle_failed_stripe()

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5.c