diff options
author | 2018-08-08 13:27:53 -0600 | |
---|---|---|
committer | 2018-08-09 08:25:04 -0600 | |
commit | d6c02a9beb67f13d5f14f23e72fa9981e8b84477 (patch) | |
tree | cc921bc4fba16e9fc8e072f7d9d112bba6e3162e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | Merge branch 'nvme-4.19' of git://git.infradead.org/nvme into for-4.19/block (diff) | |
download | linux-dev-d6c02a9beb67f13d5f14f23e72fa9981e8b84477.tar.xz linux-dev-d6c02a9beb67f13d5f14f23e72fa9981e8b84477.zip |
block: bvec_nr_vecs() returns value for wrong slab
In commit ed996a52c868 ("block: simplify and cleanup bvec pool
handling"), the value of the slab index is incremented by one in
bvec_alloc() after the allocation is done to indicate an index value of
0 does not need to be later freed.
bvec_nr_vecs() was not updated accordingly, and thus returns the wrong
value. Decrement idx before performing the lookup.
Fixes: ed996a52c868 ("block: simplify and cleanup bvec pool handling")
Signed-off-by: Greg Edwards <gedwards@ddn.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions