Re: Maximum data size in a single transfer for MS driver

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

 



>>>>> "Alan" == Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> writes:

Alan> Why is max_sectors changed?  If it is already smaller than the new
Alan> value of max_hw_sectors, shouldn't it remain the same?

We have a lot of legacy device drivers kicking around in the tree so the
default max request size remains the conservative SAFE_MAX_SECTORS
(255).

When a low level driver explicitly tells us that it can support bigger
requests we take the opportunity to increase the soft limit to the block
layer default (1024).

Also, this function is generally called at block device creation time so
it's not like we're overwriting an existing user setting.

-- 
Martin K. Petersen	Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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