Re: jgarzik and max-sectors: out of memory

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

 



On Tue, May 30 2006, Jeff Garzik wrote:
> On Tue, May 30, 2006 at 11:10:02AM +0200, Jens Axboe wrote:
> > And I'm sure some are even lower than that. Of course libata should be
> > be imposing anything on the driver, the logic that drivers/ide uses for
> > this is actually pretty sane:
> > 
> >         if (device_lba28)
> >                 max_hw_sectors = 256;
> >         if (device_lba48)
> >                 max_hw_sectors = 65536;
> >         if (max_sectors > more_than_controller_supports)
> >                 max_sectors = more_than_controller_supports;
> > 
> > or something close to that.
> 
> libata has always done this, modulo the ATA_MAX_SECTORS issue.

I thought so, but then I don't understand your last mail - there's no
problem with 255 sector drivers, then.

-- 
Jens Axboe

-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux