diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-03-06 22:19:49 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-03-12 21:55:24 -0400 |
commit | 1875ede02ed5e176a18dccbca84abc28d5b3e141 (patch) | |
tree | c7a0a73e81d05167239453a135f6b85859552297 /drivers/macintosh/mac_hid.c | |
parent | 217c55cd0cea8f03a5ef2faf68681bb10ae22573 (diff) |
scsi: core: Make SCSI Status CONDITION MET equivalent to GOOD
The SCSI PRE-FETCH (10 or 16) command is present both on hard disks
and some SSDs. It is useful when the address of the next block(s) to
be read is known but it is not following the LBA of the current READ
(so read-ahead won't help). It returns two "good" SCSI Status values.
If the requested blocks have fitted (or will most likely fit (when
the IMMED bit is set)) into the disk's cache, it returns CONDITION
MET. If it didn't (or will not) fit then it returns GOOD status.
The goal of this patch is to stop the SCSI subsystem treating the
CONDITION MET SCSI status as an error. The current state makes the
PRE-FETCH command effectively unusable via pass-throughs.
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/macintosh/mac_hid.c')
0 files changed, 0 insertions, 0 deletions