Hi, I found a smp dead lock in io_request_lock/queue_lock patch in redhat's 2.4.18-4 kernel. I don't know how this patch is going on, just put my fix for it here. :) The dead lock is for scsi host->lock and scsi q->queue_lock between scsi_restart_operations _at_ scsi_error.c and scsi_request_fn _at_ scsi_lib.c. Index: scsi_error.c =================================================================== RCS file: /home/cvsroot/ieee1394_driver/linux-2.4.18-3/drivers/scsi/scsi_error.c,v retrieving revision 1.13 retrieving revision 1.13.8.1 diff -Llinux-2.4.18-3/drivers/scsi/scsi_error.c -Llinux-2.4.18-3/drivers/scsi/scsi_error.c -u -d -r1.13 -r1.13.8.1 --- linux-2.4.18-3/drivers/scsi/scsi_error.c +++ linux-2.4.18-3/drivers/scsi/scsi_error.c @@ -1293,11 +1293,11 @@ break; } q = &SDpnt->request_queue; - spin_lock(q->queue_lock); spin_unlock(host->lock); + spin_lock(q->queue_lock); q->request_fn(q); - spin_lock(host->lock); spin_unlock(q->queue_lock); + spin_lock(host->lock); } spin_unlock_irqrestore(host->lock, flags); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups:
- Re: smp dead lock of io_request_lock/queue_lock patchArjan van de Ven
- Prev by Date: Re: 2.6.0: blkdev_get() oopses on floppy
- Next by Date: Re: BUG: The key "/ ?" on my abtn2 keyboard is dead with kernel 2.6.1
- Previous by thread: smbfs-problems with linux-2.6.x and samba 3.0.1 on debian unstable
- Next by thread: Re: smp dead lock of io_request_lock/queue_lock patch
- Indexes:[Main][Thread]