diff options
| author | John Garry <[email protected]> | 2021-10-05 18:23:28 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-10-18 06:17:02 -0600 |
| commit | 8fa044640f128c0cd015f72cda42989a664889fc (patch) | |
| tree | 62e6eeef92eaa7a9b23a9577bae751257b0bf85c /tools/perf/scripts/python | |
| parent | d2a27964e60ff18e637334864042af54de383902 (diff) | |
blk-mq: Relocate shared sbitmap resize in blk_mq_update_nr_requests()
For shared sbitmap, if the call to blk_mq_tag_update_depth() was
successful for any hctx when hctx->sched_tags is not set, then it would be
successful for all (due to nature in which blk_mq_tag_update_depth()
fails).
As such, there is no need to call blk_mq_tag_resize_shared_sbitmap() for
each hctx. So relocate the call until after the hctx iteration under the
!q->elevator check, which is equivalent (to !hctx->sched_tags).
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions