Re: [PATCH] scsi: sd_zbc: Fix sd_zbc_report_zones() buffer allocation

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

 



Damien,

> +	buflen = min(queue_max_sectors(disk->queue) << 9,
> +		     roundup((nrz + 1) * 64, 512));

Shouldn't this be queue_max_hw_sectors()?

max_sectors is the soft limit for filesystem reads and writes.

max_hw_sectors is the per-command maximum data transfer supported by the
controller.

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux