aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorSteve Siwinski <[email protected]>2025-05-08 20:01:22 +0000
committerMartin K. Petersen <[email protected]>2025-05-13 02:35:48 +0000
commite8007fad5457ea547ca63bb011fdb03213571c7e (patch)
tree6451889611f6dfdf97689c309db0a79913089182 /scripts/gcc-plugins/randomize_layout_plugin.c
parentscsi: ufs: core: Remove redundant query_complete trace (diff)
downloadkernel-e8007fad5457ea547ca63bb011fdb03213571c7e.tar.gz
kernel-e8007fad5457ea547ca63bb011fdb03213571c7e.zip
scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer
The REPORT ZONES buffer size is currently limited by the HBA's maximum segment count to ensure the buffer can be mapped. However, the block layer further limits the number of iovec entries to 1024 when allocating a bio. To avoid allocation of buffers too large to be mapped, further restrict the maximum buffer size to BIO_MAX_INLINE_VECS. Replace the UIO_MAXIOV symbolic name with the more contextually appropriate BIO_MAX_INLINE_VECS. Fixes: b091ac616846 ("sd_zbc: Fix report zones buffer allocation") Cc: [email protected] Signed-off-by: Steve Siwinski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions