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 10:36:29AM +0200, Jens Axboe wrote:
> > On Tue, May 30 2006, Jeff Garzik wrote:
> > > Jens Axboe wrote:
> > > >Yep lets please do that, I don't think libata ever had any problems with 
> > > >256 sectors other than perhaps a worry that it would break "something" :-)
> > > 
> > > There were definite bugs in the past with 256 (versus <= 255) sectors...
> > 
> > Hardware or software? IIRC, the hardware ones were largely an urban
> > legend.
> 
> Software.
> 
> Alan is submitting a couple PATA drivers limited to 255 though...

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.

-- 
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