linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2/2] raid6_unplug_device() fix
@ 2006-04-25  3:36 Coywolf Qi Hunt
  0 siblings, 0 replies; only message in thread
From: Coywolf Qi Hunt @ 2006-04-25  3:36 UTC (permalink / raw)
  To: akpm; +Cc: neilb, linux-kernel, linux-raid

Hello,

Fix raid6_unplug_device() to not disturb raid6d unnecessarily.

Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
---

diff --git a/drivers/md/raid6main.c b/drivers/md/raid6main.c
index 820536e..d3deedb 100644
--- a/drivers/md/raid6main.c
+++ b/drivers/md/raid6main.c
@@ -1644,8 +1644,8 @@ static void raid6_unplug_device(request_
 	if (blk_remove_plug(q)) {
 		conf->seq_flush++;
 		raid6_activate_delayed(conf);
+		md_wakeup_thread(mddev->thread);
 	}
-	md_wakeup_thread(mddev->thread);
 
 	spin_unlock_irqrestore(&conf->device_lock, flags);
 

-- 
Coywolf Qi Hunt

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-25  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-25  3:36 [patch 2/2] raid6_unplug_device() fix Coywolf Qi Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).