Query: scsi_track_queue_full
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SCSI_TRACK_QUEUE_FUL(9) SCSI mid layer SCSI_TRACK_QUEUE_FUL(9)NAMEscsi_track_queue_full - track QUEUE_FULL events to adjust queue depthSYNOPSISint scsi_track_queue_full(struct scsi_device * sdev, int depth);ARGUMENTSsdev SCSI Device in question depth Current number of outstanding SCSI commands on this device, not counting the one returned as QUEUE_FULL.DESCRIPTIONThis function will track successive QUEUE_FULL events on a specific SCSI device to determine if and when there is a need to adjust the queue depth on the device.RETURNS0 - No change needed, >0 - Adjust queue depth to this new depth, -1 - Drop back to untagged operation using host->cmd_per_lun as the untagged command depthLOCK STATUSNone held on entryNOTESLow level drivers may call this at any time and we will do "The Right Thing." We are interrupt context safe.AUTHORSJames Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 SCSI_TRACK_QUEUE_FUL(9)