Skip to contentSkip to conversation

raid5_unplug_device() fix

PATCH New qiyong 1 participant 1 message Apr 20, 2006 MD RAID

lore
Share & tools
lore

qiyong

author
#0 lore raw

PATCH 1/1 raid5_unplug_device() fix

Hello,

Fix raid5_unplug_device() to not disturb raid5d unnecessarily.

---

drivers/md/raid5.c +1 -1
index 3184360..eff1d9c 100644
@@ -1680,8 +1680,8 @@ static void raid5_unplug_device(request_
 	if (blk_remove_plug(q)) {
 		conf->seq_flush++;
 		raid5_activate_delayed(conf);
+		md_wakeup_thread(mddev->thread);
 	}
-	md_wakeup_thread(mddev->thread);
 
 	spin_unlock_irqrestore(&conf->device_lock, flags);
 
Signature · 1 line
Coywolf Qi Hunt