On Fri, 22 Aug 2008 11:58:16 +0100 David Woodhouse <dwmw2@xxxxxxxxxxxxx> wrote: > On Fri, 2008-08-22 at 12:50 +0200, Jens Axboe wrote: > > > I suspect we need a separate 'max_discard_sectors' field. > > > > No, that is what max_hw_sectors is for. > > I thought Pierre's problem is that he has _different_ limits for > discards vs. read/writes? > Indeed. max_hw_sectors is _not_ used for "maximum number of sectors" in most cases, but for "maximum number of bytes the device can transfer". The difference between the two is irrelevant for data requests, but is evident here. -- -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
Attachment:
signature.asc
Description: PGP signature