diff options
| author | John Garry <[email protected]> | 2021-10-05 18:23:35 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-10-18 06:17:03 -0600 |
| commit | 63064be150e4b1ba1e4af594ef5aa81adf21a52d (patch) | |
| tree | 75d4a2239c3ecf782d0ee1ff1f1563bc7378dc14 /tools/perf/scripts/python/bin | |
| parent | a7e7388dced47a10ca13ae95ca975ea2830f196b (diff) | |
blk-mq: Add blk_mq_alloc_map_and_rqs()
Add a function to combine allocating tags and the associated requests,
and factor out common patterns to use this new function.
Some function only call blk_mq_alloc_map_and_rqs() now, but more
functionality will be added later.
Also make blk_mq_alloc_rq_map() and blk_mq_alloc_rqs() static since they
are only used in blk-mq.c, and finally rename some functions for
conciseness and consistency with other function names:
- __blk_mq_alloc_map_and_{request -> rqs}()
- blk_mq_alloc_{map_and_requests -> set_map_and_rqs}()
Suggested-by: Ming Lei <[email protected]>
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions