• Douglas Gilbert's avatar
    [SCSI] skip sense logging for some ATA PASS-THROUGH cdbs · e7efe593
    Douglas Gilbert authored
    Further to the lsml thread titled:
    "does scsi_io_completion need to dump sense data for ata pass through (ck_cond =
    1) ?"
    
    This is a patch to skip logging when the sense data is
    associated with a SENSE_KEY of "RECOVERED_ERROR" and the
    additional sense code is "ATA PASS-THROUGH INFORMATION
    AVAILABLE". This only occurs with the SAT ATA PASS-THROUGH
    commands when CK_COND=1 (in the cdb). It indicates that
    the sense data contains ATA registers.
    
    Smartmontools uses such commands on ATA disks connected via
    SAT. Periodic checks such as those done by smartd cause
    nuisance entries into logs that are:
        - neither errors nor warnings
        - pointless unless the cdb that caused them are also logged
    Signed-off-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    e7efe593
scsi_lib.c 64.4 KB