aboutsummaryrefslogtreecommitdiff
path: root/Documentation/filesystems/caching/backend-api.rst
diff options
context:
space:
mode:
authorKemeng Shi <[email protected]>2023-01-18 17:37:21 +0800
committerJens Axboe <[email protected]>2023-02-06 09:22:28 -0700
commit984ce0a7d75b577fd84f2cc7a83e6e2d2503f90e (patch)
treeab666c875b013218f674dcd43dd9cd79b2633b3d /Documentation/filesystems/caching/backend-api.rst
parent0d617a83e8d4d3149d76cc074d9779a3b0ee7baf (diff)
blk-mq: use blk_mq_commit_rqs helper in blk_mq_try_issue_list_directly
Call blk_mq_commit_rqs instead of access ->commit_rqs directly. As you can see in comment of blk_mq_commit_rqs, we only need explicitly call this in two cases: -did not queue everything initially scheduled to queue -the last attempt to queue a request failed Both cases can be checked with ret of last request which breaks list walk. Then we can remove unnecessary error count and unnecessary commit triggered by error besides cases described above. Signed-off-by: Kemeng Shi <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'Documentation/filesystems/caching/backend-api.rst')
0 files changed, 0 insertions, 0 deletions