scsi_check_sense() interfering with pass-through SCSI calls
I have been sent an example of sg_verify giving strange results in BYTCHK mode. A bus analyzer is showing a properly formed sense buffer with a sense_key of MISCOMPARE. In lk 3.3.0 scsi_check_sense() is detecting this case and setting DID_TARGET_ERROR. For a pass-through call originating from the sg or bsg driver that is unwelcome interference.
Since users of a SCSI command pass-through should be checking the SCSI status and sense buffer, then commands issued by the bsg and sg driver (probably st as well) should not be calling scsi_check_sense() IMO.
Doug Gilbert