aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2025-02-25 02:21:41 +0000
committerJens Axboe <[email protected]>2025-02-25 15:41:32 +0000
commit889c57066ceee5e9172232da0608a8ac053bb6e5 (patch)
tree20b4dee2aac9d63a80b5860c29a3f15ee584b6e1 /net/unix/sysctl_net_unix.c
parentMerge tag 'nvme-6.14-2025-02-20' of git://git.infradead.org/nvme into block-6.14 (diff)
downloadkernel-889c57066ceee5e9172232da0608a8ac053bb6e5.tar.gz
kernel-889c57066ceee5e9172232da0608a8ac053bb6e5.zip
block: make segment size limit workable for > 4K PAGE_SIZE
Using PAGE_SIZE as a minimum expected DMA segment size in consideration of devices which have a max DMA segment size of < 64k when used on 64k PAGE_SIZE systems leads to devices not being able to probe such as eMMC and Exynos UFS controller [0] [1] you can end up with a probe failure as follows: WARNING: CPU: 2 PID: 397 at block/blk-settings.c:339 blk_validate_limits+0x364/0x3c0 Ensure we use min(max_seg_size, seg_boundary_mask + 1) as the new min segment size when max segment size is < PAGE_SIZE for 16k and 64k base page size systems. If anyone need to backport this patch, the following commits are depended: commit 6aeb4f836480 ("block: remove bio_add_pc_page") commit 02ee5d69e3ba ("block: remove blk_rq_bio_prep") commit b7175e24d6ac ("block: add a dma mapping iterator") Link: https://lore.kernel.org/linux-block/[email protected]/ # [0] Link: https://lore.kernel.org/linux-block/[email protected]/ # [1] Cc: Yi Zhang <[email protected]> Cc: John Garry <[email protected]> Cc: Keith Busch <[email protected]> Tested-by: Paul Bunyan <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions