aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/sysctl.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2024-04-24 13:47:22 +0000
committerJens Axboe <[email protected]>2024-05-07 02:27:51 +0000
commitffd379c13fc0ab2c7c4313e7a01c71d9d202cc88 (patch)
tree62db69962865a98131d15bbd21c477d08816609f /net/tipc/sysctl.c
parentMerge commit '50abcc179e0c9ca667feb223b26ea406d5c4c556' of git://git.infradea... (diff)
downloadkernel-ffd379c13fc0ab2c7c4313e7a01c71d9d202cc88.tar.gz
kernel-ffd379c13fc0ab2c7c4313e7a01c71d9d202cc88.zip
block: set default max segment size in case of virt_boundary
For devices with virt_boundary limit, the driver may provide zero max segment size, we have to set it as UINT_MAX at default. Otherwise, it may cause warning in driver when handling sglist. Fix it by setting default max segment size as UINT_MAX. Cc: Christoph Hellwig <[email protected]> Cc: Mike Snitzer <[email protected]> Fixes: b561ea56a264 ("block: allow device to have both virt_boundary_mask and max segment size") Tested-by: Geert Uytterhoeven <[email protected]> Reported-by: Geert Uytterhoeven <[email protected]> Closes: https://lore.kernel.org/linux-block/[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/tipc/sysctl.c')
0 files changed, 0 insertions, 0 deletions