linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lan Tran <transter@gmail.com>
To: linux-scsi@vger.kernel.org
Cc: johntsai@us.ibm.com, tranlan@us.ibm.com
Subject: BUG: SCSI INQUIRY thru SCSI_IOCTL_SEND_COMMAND returns no errno for disconnected device
Date: Thu, 30 Sep 2004 12:43:47 -0700	[thread overview]
Message-ID: <ac71172a04093012437c353f83@mail.gmail.com> (raw)

We have a SAN system set up, where our host is connected to IBM ESS
storage and SVC storage. When we disconnect ALL FC cables between the
host and storage devices, and then send a SCSI INQUIRY using the
SCSI_IOCTL_SEND_COMMAND ioctl to the
sd devices, the ioctl does not return with a failure code. Instead, it
returns with a zero-length buffer.

Is there a reason why we would get a zeroed-length buffer instead of
an error return code?

We see this problem on both an emulex driver (2.10f) and qlogic driver
(8.00.00b14, non failover version).

Looking through the kernel SCSI layer code, it just seems that the
SCSI inquiry is packaged up as a request and sent off to the LLDD. So
is something strange happening in the LLDD's ...

Thanks!!
Lan

             reply	other threads:[~2004-09-30 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30 19:43 Lan Tran [this message]
2004-10-01 16:31 ` BUG: SCSI INQUIRY thru SCSI_IOCTL_SEND_COMMAND returns no errno for disconnected device Patrick Mansfield
2004-10-08 23:43   ` Lan Tran
2004-10-09  6:35     ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac71172a04093012437c353f83@mail.gmail.com \
    --to=transter@gmail.com \
    --cc=johntsai@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tranlan@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).