1SCSI_TRACK_QUEUE_FUL(9)         SCSI mid layer         SCSI_TRACK_QUEUE_FUL(9)
2
3
4

NAME

6       scsi_track_queue_full - track QUEUE_FULL events to adjust queue depth
7

SYNOPSIS

9       int scsi_track_queue_full(struct scsi_device * sdev, int depth);
10

ARGUMENTS

12       sdev
13           SCSI Device in question
14
15       depth
16           Current number of outstanding SCSI commands on this device, not
17           counting the one returned as QUEUE_FULL.
18

DESCRIPTION

20       This function will track successive QUEUE_FULL events on a specific
21       SCSI device to determine if and when there is a need to adjust the
22       queue depth on the device.
23

RETURNS

25       0 - No change needed, >0 - Adjust queue depth to this new depth, -1 -
26       Drop back to untagged operation using host->cmd_per_lun as the untagged
27       command depth
28

LOCK STATUS

30       None held on entry
31

NOTES

33       Low level drivers may call this at any time and we will do “The Right
34       Thing.”  We are interrupt context safe.
35

AUTHORS

37       James Bottomley <James.Bottomley@hansenpartnership.com>
38           Author.
39
40       Rob Landley <rob@landley.net>
41           Author.
42
44Kernel Hackers Manual 3.10         June 2019           SCSI_TRACK_QUEUE_FUL(9)
Impressum