mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Fix incomplete backport of commit 423f04d63cf4
Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
af706acbb5
commit
6883832be8
1 changed files with 0 additions and 3 deletions
|
@ -1272,11 +1272,8 @@ static void error(struct mddev *mddev, struct md_rdev *rdev)
|
|||
set_bit(Blocked, &rdev->flags);
|
||||
spin_lock_irqsave(&conf->device_lock, flags);
|
||||
if (test_and_clear_bit(In_sync, &rdev->flags)) {
|
||||
unsigned long flags;
|
||||
spin_lock_irqsave(&conf->device_lock, flags);
|
||||
mddev->degraded++;
|
||||
set_bit(Faulty, &rdev->flags);
|
||||
spin_unlock_irqrestore(&conf->device_lock, flags);
|
||||
/*
|
||||
* if recovery is running, make sure it aborts.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue