---
name: "scsi_track_queue_full"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_track_queue_full"
---

# scsi\_track\_queue\_full(9)

track QUEUE\_FULL events to adjust queue depth

## NAME

scsi\_track\_queue\_full - track QUEUE\_FULL events to adjust queue depth

## SYNOPSIS

**int scsi\_track\_queue\_full(struct scsi\_device \*** *sdev***, int** *depth***);**

## ARGUMENTS

*sdev*

SCSI Device in question

*depth*

Current number of outstanding SCSI commands on this device, not counting the one returned as QUEUE\_FULL.

## DESCRIPTION

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.

## RETURN

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

Lock Status: None held on entry

## NOTES

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

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
