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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 19:05:53 +0000 (11:05 -0800)
commit0524a6bf9f76d51cfb1d96622bffedf1219990fb
tree3eb1d16ac294b495289343f426012bb4fbda4d18
parentbf96a2e6b0f40b1e48992edde49e7eae8d5923d1
raid5: Use slow_path to release stripe when mddev->thread is null

commit ad4068de49862b083ac2a15bc50689bb30ce3e44 upstream.

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

Fixes: 773ca82fa1ee58dd1bf88b
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid5.c