Messages in this thread Patch in this message | | | Date | Thu, 20 Apr 2006 18:01:03 +0800 | From | qiyong <> | Subject | [patch] raid5_unplug_device() fix |
| |
Hello,
Fix raid5_unplug_device() to not disturb raid5d unnecessarily.
Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com> ---
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 3184360..eff1d9c 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -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); -- Coywolf Qi Hunt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |