diff options
author | Ming Lei <[email protected]> | 2018-08-02 18:23:26 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-08-02 14:41:58 -0600 |
commit | 75d6e175fc511e95ae3eb8f708680133bc211ed3 (patch) | |
tree | 8a0a8ef6c94333a8d42e76b123d8fadc82af4c35 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | b233f127042dba991229e3882c6217c80492f6ef (diff) |
blk-mq: fix updating tags depth
The passed 'nr' from userspace represents the total depth, meantime
inside 'struct blk_mq_tags', 'nr_tags' stores the total tag depth,
and 'nr_reserved_tags' stores the reserved part.
There are two issues in blk_mq_tag_update_depth() now:
1) for growing tags, we should have used the passed 'nr', and keep the
number of reserved tags not changed.
2) the passed 'nr' should have been used for checking against
'tags->nr_tags', instead of number of the normal part.
This patch fixes the above two cases, and avoids kernel crash caused
by wrong resizing sbitmap queue.
Cc: "Ewan D. Milne" <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Omar Sandoval <[email protected]>
Tested by: Marco Patalano <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions