All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] md: raid10: wake up frozen array
@ 2008-07-25 19:03 Arthur Jones
  2008-08-01  3:03 ` Neil Brown
  2008-08-30 21:30 ` Clive Messer
  0 siblings, 2 replies; 6+ messages in thread
From: Arthur Jones @ 2008-07-25 19:03 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

When rescheduling a bio in raid10, we wake up
the md thread, but if the array is frozen, this
will have no effect.  This causes the array to
remain frozen for eternity.  We add a wake_up
to allow the array to de-freeze.  This code is
nearly identical to the raid1 code, which has
this fix already.

Signed-off-by: Arthur Jones <ajones@riverbed.com>
---
 drivers/md/raid10.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 159535d..d41bebb 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -215,6 +215,9 @@ static void reschedule_retry(r10bio_t *r10_bio)
 	conf->nr_queued ++;
 	spin_unlock_irqrestore(&conf->device_lock, flags);
 
+	/* wake up frozen array... */
+	wake_up(&conf->wait_barrier);
+
 	md_wakeup_thread(mddev->thread);
 }
 
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-05 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 19:03 [PATCH] md: raid10: wake up frozen array Arthur Jones
2008-08-01  3:03 ` Neil Brown
2008-08-30 21:30 ` Clive Messer
2008-09-02 15:07   ` Arthur Jones
2008-09-05 16:58     ` Bill Davidsen
2008-09-05 17:04       ` Arthur Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.