---
name: "blk_stop_queue"
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/blk_stop_queue"
---

# blk\_stop\_queue(9)

stop a queue

## NAME

blk\_stop\_queue - stop a queue

## SYNOPSIS

**void blk\_stop\_queue(struct request\_queue \*** *q***);**

## ARGUMENTS

*q*

The struct request\_queue in question

## DESCRIPTION

The Linux block layer assumes that a block driver will consume all entries on the request queue when the request\_fn strategy is called. Often this will not happen, because of hardware limitations (queue depth settings). If a device driver gets a 'queue full' response, or if it simply chooses not to queue more I/O at one point, it can call this function to prevent the request\_fn from being called until the driver has signalled it's ready to go again. This happens by calling **blk\_start\_queue** to restart queue operations. Queue lock must be held.

## COPYRIGHT
