linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* scsi_check_sense() interfering with pass-through SCSI calls
@ 2012-03-27 21:13 Douglas Gilbert
  0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2012-03-27 21:13 UTC (permalink / raw)
  To: linux-scsi

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-27 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-27 21:13 scsi_check_sense() interfering with pass-through SCSI calls Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).