---
name: "blk_cleanup_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_cleanup_queue"
---

# blk\_cleanup\_queue(9)

shutdown a request queue

## NAME

blk\_cleanup\_queue - shutdown a request queue

## SYNOPSIS

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

## ARGUMENTS

*q*

request queue to shutdown

## DESCRIPTION

Mark *q* DYING, drain all pending requests, mark *q* DEAD, destroy and put it. All future requests will be failed immediately with -ENODEV.

## COPYRIGHT
