From c2a9331c62216e222a08de8dd58559367fef0af6 Mon Sep 17 00:00:00 2001 From: Date: Tue, 12 Apr 2005 16:38:09 -0500 Subject: updates for CFQ oops fix - add a comment to the device structure that the device_busy field is now protected by the request_queue->queue_lock - null out sdev->request_queue after the queue is released to trap any (and there shouldn't be any) use after the queue is freed. Signed-off-by: James Bottomley --- include/scsi/scsi_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index f6d05131829..fe9571d2e30 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -43,6 +43,7 @@ struct scsi_device { struct list_head siblings; /* list of all devices on this host */ struct list_head same_target_siblings; /* just the devices sharing same target id */ + /* this is now protected by the request_queue->queue_lock */ volatile unsigned short device_busy; /* commands actually active on low-level */ spinlock_t list_lock; struct list_head cmd_list; /* queue of in use SCSI Command structures */ -- cgit v1.2.3