aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKundan Kumar <[email protected]>2024-05-23 17:01:49 +0530
committerKeith Busch <[email protected]>2024-05-24 08:59:16 -0700
commit1bd293fcf3af84674e82ed022c049491f3768840 (patch)
tree92ec42c937a494bb535a61976a1182a1ee8c53f7 /net/unix/sysctl_net_unix.c
parent64e3d02b43b17390f0fa9af6708a4eafdf20ba01 (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 <[email protected]> Signed-off-by: Kundan Kumar <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions