diff options
| author | huhai <[email protected]> | 2018-05-18 08:32:30 -0600 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-05-18 08:35:38 -0600 |
| commit | d416c92c5d6229b33f37f0f75e52194081ccbcc4 (patch) | |
| tree | dbc881f131ae6981d736023cf1ba9fc59e292ed5 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | 76aa1d341257c1beb6ecfdd67fecdaac7e2aee25 (diff) | |
blk-mq: clear hctx->dispatch_from when mappings change
When the number of hardware queues is changed, the drivers will call
blk_mq_update_nr_hw_queues() to remap hardware queues. This changes
the ctx mappings, but the current code doesn't clear the
->dispatch_from hint. This can result in dispatch_from pointing to
a ctx that isn't mapped to the hctx anymore.
Fixes: b347689ffbca ("blk-mq-sched: improve dispatching from sw queue")
Signed-off-by: huhai <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Moved the placement of the clearing to where we clear other items
pertaining to the existing mapping, added Fixes line, and reworded
the commit message.
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions