1BLK_RQ_CHECK_LIMITS(9) Block Devices BLK_RQ_CHECK_LIMITS(9)
2
3
4
6 blk_rq_check_limits - Helper function to check a request for the queue
7 limit
8
10 int blk_rq_check_limits(struct request_queue * q, struct request * rq);
11
13 q
14 the queue
15
16 rq
17 the request being checked
18
20 rq may have been made based on weaker limitations of upper-level queues
21 in request stacking drivers, and it may violate the limitation of q.
22 Since the block layer and the underlying device driver trust rq after
23 it is inserted to q, it should be checked against q before the
24 insertion using this generic function.
25
26 This function should also be useful for request stacking drivers in
27 some cases below, so export this fuction. Request stacking drivers like
28 request-based dm may change the queue limits while requests are in the
29 queue (e.g. dm's table swapping). Such request stacking drivers should
30 check those requests agaist the new queue limits again when they
31 dispatch those requests, although such checkings are also done against
32 the old queue limits when submitting requests.
33
35Kernel Hackers Manual 2.6. November 2011 BLK_RQ_CHECK_LIMITS(9)