diff options
author | Kundan Kumar <kundan.kumar@samsung.com> | 2024-05-23 17:01:49 +0530 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-05-24 08:59:16 -0700 |
commit | 1bd293fcf3af84674e82ed022c049491f3768840 (patch) | |
tree | 92ec42c937a494bb535a61976a1182a1ee8c53f7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 64e3d02b43b17390f0fa9af6708a4eafdf20ba01 (diff) |
nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset
bio_vec start offset may be relatively large particularly when large
folio gets added to the bio. A bigger offset will result in avoiding the
single-segment mapping optimization and end up using expensive
mempool_alloc further.
Rather than using absolute value, adjust bv_offset by
NVME_CTRL_PAGE_SIZE while checking if segment can be fitted into one/two
PRP entries.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions