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)
commitad4068de49862b083ac2a15bc50689bb30ce3e44
tree83b871b13fa3b1cc3bf6b6b2b2527be354ae7768
parent39cf275a1a18ba3c7eb9b986c5c9b35b57332798
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: 773ca82fa1ee58dd1bf88b
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c