]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: Use slow_path to release stripe when mddev->thread is null
authormajianpeng <majianpeng@gmail.com>
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)
commitaacea06578c116c8904d27d15aa1250f79a98100
tree83b871b13fa3b1cc3bf6b6b2b2527be354ae7768
parent0c4092dddcd5cd21abd1ea8238b803a5ea738e66
raid5: Use slow_path to release stripe when mddev->thread is null

When release_stripe() is called in grow_one_stripe(), the
mddev->thread is null. So it will omit one wakeup this thread to
release stripe.
For this condition, use slow_path to release stripe.

Bug was introduced in 3.12

Cc: stable@vger.kernel.org (3.12+)
Fixes: 03753b1dda67ff59588e5c
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c