Re: [PATCH v4 6/6] block: use chunk_sectors when evaluating stacked atomic write limits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/07/2025 13:27, Nilay Shroff wrote:
+	if ((unsigned long)chunk_sectors << SECTOR_SHIFT > UINT_MAX)
+		chunk_bytes = chunk_sectors;
+	else
+		chunk_bytes = chunk_sectors << SECTOR_SHIFT;
Can we use check_shl_overflow() here for checking overflow?

ok, I can change.

Otherwise,
changes look good to me. I've also tested it using my NVMe disk which
supports up to 256kb of atomic writes.
> > Reviewed-by: Nilay Shroff<nilay@xxxxxxxxxxxxx>
Tested-by: Nilay Shroff<nilay@xxxxxxxxxxxxx>

thanks





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux