From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: michaelc@cs.wisc.edu
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/2] scsi error: add target reset eh handler
Date: Fri, 21 Dec 2007 15:36:14 -0600 [thread overview]
Message-ID: <1198272974.3130.70.camel@localhost.localdomain> (raw)
In-Reply-To: <1198037477766-git-send-email-michaelc@cs.wisc.edu>
On Tue, 2007-12-18 at 22:11 -0600, michaelc@cs.wisc.edu wrote:
> From: Mike Christie <michaelc@cs.wisc.edu>
>
> Drivers like qla4xxx and bnx2i (and it looks like some fcp drivers too),
> want to be able to send a lun reset in the eh device handler and then a
> target reset in some other handler. The old linux-iscsi driver, which did
> the host per session like open-iscsi did the target reset in the host reset,
> because the scsi command accounting that scsi_error.c does worked out
> nicely for software iscsi, but does not work for hardware iscsi well.
>
> This patch adds a eh_target_reset_handler any driver can use to send
> a target reset.
>
> The next patch will hook qla4xxx into it, and patches for iscsi_tcp/iser
> and bnx2i will follow later when bnx2i is closer to getting merged.
We sort of have a mapping problem here. In the old ways of the error
handler, since it was based on SPI and SCSI-2, when it said "device
reset" what it actually meant was target reset, since that was the only
message the SPI bus could send. It was only in the later SCSI-3
standard that a LUN reset came along. So, most resent implementations
(even FC ones) send a target reset for this function.
So ... where I'm going is that I'm not averse to adding a target reset
(it has been suggested before), but then we'll have to clean up a lot of
other drivers. Alternatively, you could just plumb target reset in to
the qla2xxx where device reset now is.
What do people think?
James
next prev parent reply other threads:[~2007-12-21 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 4:11 RFC: add target reset handler to scsi_error.c michaelc
2007-12-19 4:11 ` [PATCH 1/2] scsi error: add target reset eh handler michaelc
2007-12-19 4:11 ` [PATCH 2/2] qla4xxx: Add target reset functionality michaelc
2007-12-21 21:26 ` David Somayajulu
2007-12-21 21:36 ` James Bottomley [this message]
2007-12-27 3:21 ` [PATCH 1/2] scsi error: add target reset eh handler Mike Christie
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=1198272974.3130.70.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
/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