scsi_track_queue_full(9)
π scsi_track_queue_full β the "bestie please chill" function for SCSI queue depth
okay so bestie, welcome to scsi_track_queue_full(9) from the Kernel API Manual β¨ this one's a kernel function and it is literally the vibe-checker for QUEUE_FULL events π
πΈ NAME πΈ
scsi_track_queue_full β tracks QUEUE_FULL events so it can adjust the queue depth, no cap π
π¦ SYNOPSIS π¦
int scsi_track_queue_full (struct scsi_device *sdev , int depth );
β¨ ARGUMENTS β¨
sdevβ the SCSI Device in question π«Ά like, the actual device we're side-eyeing.depthβ the current number of outstanding SCSI commands on this device, and not counting the one that came back as QUEUE_FULL π (important, don't @ me).
π DESCRIPTION π
so this function tracks successive QUEUE_FULL events on one specific SCSI device, and it's doing that to figure out if and when there's a need to adjust the queue depth on the device π like it's watching the pattern, noticing the struggle, and deciding whether things need to change.
Lock Status: None held on entry π periodt.
π RETURN π
0β no change needed, everything's fine, we stay slaying π>0β adjust the queue depth to this new depth π₯ (yes, the return value is the new depth, iconic)-1β drop back to untagged operation usinghost->cmd_per_lunas the untagged command depth π like, we're going old school
π NOTES π
low level drivers may call this at any time and we will do "The Right Thing." π fr fr. We are interrupt context safe π§ which is highkey the whole point.
π₯ SEE ALSO π₯
Kernel file ./drivers/scsi/scsi.c plus all of these besties:
scsi_finish_command(9), scsi_change_queue_depth(9), scsi_vpd_inquiry(9), scsi_get_vpd_page(9), scsi_get_vpd_buf(9), scsi_attach_vpd(9), scsi_report_opcode(9), scsi_cdl_check(9), scsi_cdl_enable(9), scsi_device_get(9), scsi_device_put(9), starget_for_each_device(9), __starget_for_each_device(9), __scsi_device_lookup_by_target(9), scsi_device_lookup_by_target(9), __scsi_device_lookup(9), scsi_device_lookup(9)
π one more thing bestie: this page lives in./drivers/scsi, it's from October 2026, and it's thescsi_track_queue_full(9)man page β so like, cite it properly, mwah π
stay safe out there and remember: track your QUEUE_FULL events, know your depth πΈπ¦β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms