Skip to contentSkip to conversation

2.5.44 scsi-misc-2.5 fix queue depth setting

PATCH New Patrick Mansfield 1 participant 1 message Oct 28, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.44 scsi-misc-2.5 fix queue depth setting

James -

Here's a simple patch against your bk tree to not reset the desired queue depth in scsi_release_commandblocks. Without this patch, if the upper level drivers are inited after the adapters, the queue depth is set to 1.

i.e.:

Current scsi-misc-2.5 gives me:

[patman@elm3a50 patman]$ ]$ cat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices

host    chan    id      lun     type    opens   qdepth  busy    online
0       0       0       0       0       2       1       0       1
0       0       1       0       0       1       1       0       1
0       0       15      0       3       0       1       0       1

With this patch:

[patman@elm3a50 patman]$ cat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices

host    chan    id      lun     type    opens   qdepth  busy    online
0       0       0       0       0       2       253     0       1
0       0       1       0       0       1       253     0       1
0       0       15      0       3       0       2       0       1

===== drivers/scsi/scsi.c 1.53 vs edited =====

drivers/scsi/scsi.c +0 -1
@@ -1517,7 +1517,6 @@
 		kfree((char *) SCpnt);
 	}
 	SDpnt->current_queue_depth = 0;
-	SDpnt->new_queue_depth = 0;
 	spin_unlock_irqrestore(&device_request_lock, flags);
 }
 

-- Patrick Mansfield