• T
    [PATCH] libata: add per-device max_sectors · b00eec1d
    Tejun Heo 提交于
    If a low level driver wants to control max_sectors, it had to adjust
    ap->host->max_sectors and set ATA_DFLAG_LOCK_SECTORS to tell
    ata_scsi_slave_config not to override the limit.  This is not only
    cumbersome but also incorrect for hosts which support more than one
    devices per port.
    
    This patch adds per-device ->max_sectors.  If the field is unset
    (zero), libata core layer will adjust ->max_sectors according to
    default rules.  If the field is set, libata honors the setting.
    Signed-off-by: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
    b00eec1d
libata-core.c 118.3 KB