---
name: "blk_cloned_rq_check_limits"
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_cloned_rq_check_limits"
---

# blk\_cloned\_rq\_check\_limits(9)

Helper function to check a cloned request for new the queue limits

## NAME

blk\_cloned\_rq\_check\_limits - Helper function to check a cloned request for new the queue limits

## SYNOPSIS

**int blk\_cloned\_rq\_check\_limits(struct request\_queue \*** *q***, struct request \*** *rq***);**

## ARGUMENTS

*q*

the queue

*rq*

the request being checked

## DESCRIPTION

*rq* may have been made based on weaker limitations of upper-level queues in request stacking drivers, and it may violate the limitation of *q*. Since the block layer and the underlying device driver trust *rq* after it is inserted to *q*, it should be checked against *q* before the insertion using this generic function.

Request stacking drivers like request-based dm may change the queue limits when retrying requests on other queues. Those requests need to be checked against the new queue limits again during dispatch.

## COPYRIGHT
