kernel_samsung_a53x/drivers/nvme/host
Kundan Kumar 4f62be49f9 nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset
[ Upstream commit 1bd293fcf3af84674e82ed022c049491f3768840 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:42 +01:00
..
core.c
fabrics.c
fabrics.h
fault_inject.c
fc.c nvme-fc: do not wait in vain when unloading module 2024-11-18 22:25:33 +01:00
fc.h
hwmon.c
Kconfig
lightnvm.c
Makefile
multipath.c nvme-multipath: find NUMA path only for online numa-node 2024-11-19 14:19:42 +01:00
nvme.h nvme: introduce helper function to get ctrl state 2024-11-18 12:12:15 +01:00
pci.c nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset 2024-11-19 14:19:42 +01:00
rdma.c
tcp.c
trace.c
trace.h
zns.c