'\" t .\" Title: scsi_track_queue_full .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SCSI_TRACK_QUEUE_FUL" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" scsi_track_queue_full \- track QUEUE_FULL events to adjust queue depth .SH "SYNOPSIS" .HP \w'int\ scsi_track_queue_full('u .BI "int scsi_track_queue_full(struct\ scsi_device\ *\ " "sdev" ", int\ " "depth" ");" .SH "ARGUMENTS" .PP \fIsdev\fR .RS 4 SCSI Device in question .RE .PP \fIdepth\fR .RS 4 Current number of outstanding SCSI commands on this device, not counting the one returned as QUEUE_FULL\&. .RE .SH "DESCRIPTION" .PP This 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\&. .SH "RETURNS" .PP 0 \- 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 depth .SH "LOCK STATUS" .PP None held on entry .SH "NOTES" .PP Low level drivers may call this at any time and we will do \(lqThe Right Thing\&.\(rq We are interrupt context safe\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br