diff options
author | John Garry <john.g.garry@oracle.com> | 2025-07-11 10:52:54 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-07-17 06:01:16 -0600 |
commit | 1de67e8e28fc47d71ee06ffa0185da549b378ffb (patch) | |
tree | ee470ec59f98173f267a44f7346eeb37257250ee /scripts/lib/kdoc | |
parent | 6381061d82141909c382811978ccdd7566698bca (diff) |
block: sanitize chunk_sectors for atomic write limits
Currently we just ensure that a non-zero value in chunk_sectors aligns
with any atomic write boundary, as the blk boundary functionality uses
both these values.
However it is also improper to have atomic write unit max > chunk_sectors
(for non-zero chunk_sectors), as this would lead to splitting of atomic
write bios (which is disallowed).
Sanitize atomic write unit max against chunk_sectors to avoid any
potential problems.
Fixes: d00eea91deaf3 ("block: Add extra checks in blk_validate_atomic_write_limits()")
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20250711105258.3135198-3-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc')
0 files changed, 0 insertions, 0 deletions