aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorKemeng Shi <[email protected]>2023-01-18 17:37:22 +0800
committerJens Axboe <[email protected]>2023-02-06 09:22:28 -0700
commite4ef2e05e0020db0d61b2cf451ef38a2bba33910 (patch)
treeead5c330bfc8397c92cc5141468726ee2750ce38 /tools/perf/scripts/python/netdev-times.py
parent984ce0a7d75b577fd84f2cc7a83e6e2d2503f90e (diff)
blk-mq: simplify flush check in blk_mq_dispatch_rq_list
1. Remove check of needs_resource and ret == BLK_STS_DEV_RESOURCE. For busy error BLK_STS*_RESOURCE, request will always be added back to list, so need_resource will not be true and ret will not be == BLK_STS_DEV_RESOURCE if list is empty. We could remove these dead check. 2. Check ret of last request instead of errors If list is empty, we only need to explicitly commit_rqs if error happens at last request which is stored in ret. So check ret of last request instead of errors to remove unnecessary commit_rqs triggered by errors returned from previous request. Signed-off-by: Kemeng Shi <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions