Re: [PATCH 0/2] MMC discard support (was [PATCH 0/7] Discard requests, v2)

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

 



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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux