]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: more incorrect BUG_ON in handle_stripe_fill.
authorNeilBrown <neilb@suse.de>
Fri, 8 May 2015 08:19:32 +0000 (18:19 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 8 May 2015 08:46:52 +0000 (18:46 +1000)
commit28856aef0e7aae86ba6a05e57e4911026fc34026
treebda4be5d9eb7fdca4d0d42a227de170a986ec424
parent5cb54a835981706c54cc85dd07574bc8750a5cef
md/raid5: more incorrect BUG_ON in handle_stripe_fill.

It is not incorrect to call handle_stripe_fill() when
a batch of full-stripe writes is active.
It is, however, a BUG if fetch_block() then decides
it needs to actually fetch anything.

So move the 'BUG_ON' to where it belongs.

Signed-off-by: NeilBrown <neilb@suse.de>
Fixes: 0a082b77715a ("RAID5: batch adjacent full stripe write")
drivers/md/raid5.c