diff options
author | Damien Le Moal <[email protected]> | 2019-10-27 23:05:44 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-11-05 23:17:53 -0500 |
commit | edc1f5432f450b486091b79697c4ddc7f0f3845a (patch) | |
tree | 6b660d218117cd67aa9aff2c61da4e8d69882e51 /lib/netdev-notifier-error-inject.c | |
parent | da0c9ea146cbe92b832f1b0f694840ea8eb33cce (diff) |
scsi: sd_zbc: Fix sd_zbc_complete()
The ILLEGAL REQUEST/INVALID FIELD IN CDB error generated by an attempt to
reset a conventional zone does not apply to the reset write pointer command
with the ALL bit set, that is, to REQ_OP_ZONE_RESET_ALL requests. Fix
sd_zbc_complete() to be quiet only in the case of REQ_OP_ZONE_RESET,
excluding REQ_OP_ZONE_RESET_ALL.
Since REQ_OP_ZONE_RESET is the only request handled by sd_zbc_complete(),
also simplify the code using a simple if statement.
[mkp: applied by hand]
Fixes: d81e9d494354 ("scsi: implement REQ_OP_ZONE_RESET_ALL")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions