Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1499588 > unrolled thread

[PATCH 3.4 120/125] Fix incomplete backport of commit 423f04d63cf4

Started bylizf@kernel.org
First post2016-10-12 15:00 +0200
Last post2016-10-12 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.4 120/125] Fix incomplete backport of commit 423f04d63cf4 lizf@kernel.org - 2016-10-12 15:00 +0200

#1499588 — [PATCH 3.4 120/125] Fix incomplete backport of commit 423f04d63cf4

Fromlizf@kernel.org
Date2016-10-12 15:00 +0200
Subject[PATCH 3.4 120/125] Fix incomplete backport of commit 423f04d63cf4
Message-ID<srriy-4vs-33@gated-at.bofh.it>
From: Zefan Li <lizefan@huawei.com>

3.4.113-rc1 review patch.  If anyone has any objections, please let me know.

------------------


Signed-off-by: Zefan Li <lizefan@huawei.com>
---
 drivers/md/raid1.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index a548eed..a4d994f 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -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.
 		 */
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web