diff options
author | Ming Lei <[email protected]> | 2020-06-30 18:24:58 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-06-30 07:51:48 -0600 |
commit | 7538352453189abf3a96461e187b1085b0ae0c6c (patch) | |
tree | e22ebc96ca8706dfab2b25b453b308d86903a4c5 /scripts/gcc-plugins/structleak_plugin.c | |
parent | 445874e89f662c8c6a56e6bb820cbe9fbef61428 (diff) |
blk-mq: move getting driver tag and budget into one helper
Move code for getting driver tag and budget into one helper, so
blk_mq_dispatch_rq_list gets a bit simplified, and easier to read.
Meantime move updating of 'no_tag' and 'no_budget_available' into
the branch for handling partial dispatch because that is exactly
consumer of the two local variables.
Also rename the parameter of 'got_budget' as 'ask_budget'.
No functional change.
Signed-off-by: Ming Lei <[email protected]>
Tested-by: Baolin Wang <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions