Re: linux-2.6.23-mm1 crashed

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Dave Milter <davemilter@...>, LKML <linux-kernel@...>, <linux-scsi@...>, Jens Axboe <jens.axboe@...>, Boaz Harrosh <bharrosh@...>
Date: Sunday, October 14, 2007 - 6:26 pm

On Sun, 2007-10-14 at 12:21 -0700, Andrew Morton wrote:

There's a bug in the gdth rework in that the instance can be deleted
from the list before the actual timer is stopped.  This can be worked
around I think by the following patch; although we really should be
stopping the timer from firing when the list goes empty.

James

diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
index e8010a7..7fa22be 100644
--- a/drivers/scsi/gdth.c
+++ b/drivers/scsi/gdth.c
@@ -3793,6 +3793,9 @@ static void gdth_timeout(ulong data)
     gdth_ha_str *ha;
     ulong flags;
 
+    if (list_empty(&gdth_instances))
+	return;
+
     ha = list_first_entry(&gdth_instances, gdth_ha_str, list);
     spin_lock_irqsave(&ha->smp_lock, flags);
 



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

Messages in current thread:
linux-2.6.23-mm1 crashed, Dave Milter, (Sun Oct 14, 2:45 pm)
Re: linux-2.6.23-mm1 crashed, Dave Milter, (Sun Oct 14, 3:24 pm)
Re: linux-2.6.23-mm1 crashed, Andrew Morton, (Sun Oct 14, 3:31 pm)
Re: linux-2.6.23-mm1 crashed, Dave Milter, (Tue Oct 16, 1:44 am)
Re: linux-2.6.23-mm1 crashed, Andrew Morton, (Sun Oct 14, 3:21 pm)
Re: linux-2.6.23-mm1 crashed, James Bottomley, (Sun Oct 14, 6:26 pm)