login
Header Space

 
 

Re: WARNING in 2.6.25-07422-gb66e1f1

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jacek Luczak <difrost.kernel@...>
Cc: Prakash Punnoor <prakash@...>, Linux Kernel list <linux-kernel@...>, <neilb@...>
Date: Sunday, May 4, 2008 - 2:38 pm

On Sun, May 04 2008, Jacek Luczak wrote:

Looks like it caught a real bug there - unfortunately we have to check
for ->queue_lock here as well, if this is another stacked devices and
not the bottom device. Does this make the warning go away for you?

diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 087eee0..958f26b 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3264,6 +3264,8 @@ static void raid5_unplug_device(struct request_queue *q)
 	unsigned long flags;
 
 	spin_lock_irqsave(&conf->device_lock, flags);
+	if (q->queue_lock)
+		spin_lock(q->queue_lock);
 
 	if (blk_remove_plug(q)) {
 		conf->seq_flush++;
@@ -3271,6 +3273,8 @@ static void raid5_unplug_device(struct request_queue *q)
 	}
 	md_wakeup_thread(mddev->thread);
 
+	if (q->queue_lock)
+		spin_unlock(q->queue_lock);
 	spin_unlock_irqrestore(&conf->device_lock, flags);
 
 	unplug_slaves(mddev);

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
WARNING in 2.6.25-07422-gb66e1f1, Prakash Punnoor, (Sat May 3, 5:51 am)
Re: WARNING in 2.6.25-07422-gb66e1f1, Jacek Luczak, (Sun May 4, 9:02 am)
Re: WARNING in 2.6.25-07422-gb66e1f1, Jens Axboe, (Sun May 4, 2:38 pm)
Re: WARNING in 2.6.25-07422-gb66e1f1, Prakash Punnoor, (Mon May 5, 2:31 pm)
Re: WARNING in 2.6.25-07422-gb66e1f1, Gabriel C, (Mon May 5, 7:08 pm)
speck-geostationary