---
name: "blk_queue_end_tag"
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_queue_end_tag"
---

# blk\_queue\_end\_tag(9)

end tag operations for a request

## NAME

blk\_queue\_end\_tag - end tag operations for a request

## SYNOPSIS

**void blk\_queue\_end\_tag(struct request\_queue \*** *q***, struct request \*** *rq***);**

## ARGUMENTS

*q*

the request queue for the device

*rq*

the request that has completed

## DESCRIPTION

Typically called when **end\_that\_request\_first** returns **0**, meaning all transfers have been done for a request. It's important to call this function before **end\_that\_request\_last**, as that will put the request back on the free list thus corrupting the internal tag list.

## NOTES

queue lock must be held.

## COPYRIGHT
