From: Christoph Hellwig <hch@lst.de>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Christoph Hellwig <hch@lst.de>,
linux-scsi@vger.kernel.org,
Douglas Gilbert <dgilbert@interlog.com>,
Robert Elliott <Elliott@hp.com>
Subject: Re: [PATCH 2/6] scsi: split scsi_nonblockable_ioctl
Date: Tue, 28 Oct 2014 18:39:26 +0100 [thread overview]
Message-ID: <20141028173926.GB22593@lst.de> (raw)
In-Reply-To: <544F5C5C.3090104@acm.org>
On Tue, Oct 28, 2014 at 10:05:32AM +0100, Bart Van Assche wrote:
> I might be missing some background information here, but it's not clear to
> me why the function like scsi_block_when_processing_errors() was introduced
> some time ago. What if immediately after error handling has finished a new
> request is queued that kicks the error handler again before the caller of
> scsi_block_when_processing_errors() has finished the actions that should
> not occur concurrently with error handling ? Has it already been considered
> to introduce a mutex to serialize error handling and activity that should
> not occur concurrently with error handling ?
I've not looked into changing the conditions, but your questions are
good ones. I'd like to go even further and ask the question of what
we try to protect here. For SG_SCSI_RESET the answer is that we want
to enforce a single outstanding TMF, as require by old parallel SCSI HBAs,
and possible by various drivers. I don't quite understand why we check
the EH state before executing other ioctl, though. Even more confusing
is that some driver like st.c and sg.c only enforce this on some ioctls.
Changing the exclusion rules isn't in the scope of this series, but if
you interested in looking into this series I'd be happy if we get the
ball on it rolling.
next prev parent reply other threads:[~2014-10-28 17:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 17:59 misc scsi ioctl updates Christoph Hellwig
2014-10-27 17:59 ` [PATCH 1/6] scsi: refactor scsi_reset_provider handling Christoph Hellwig
2014-10-28 8:51 ` Bart Van Assche
2014-10-28 17:36 ` Christoph Hellwig
2014-10-27 17:59 ` [PATCH 2/6] scsi: split scsi_nonblockable_ioctl Christoph Hellwig
2014-10-28 9:05 ` Bart Van Assche
2014-10-28 17:39 ` Christoph Hellwig [this message]
2014-10-29 10:55 ` Bart Van Assche
2014-10-29 18:41 ` Christoph Hellwig
2014-10-27 17:59 ` [PATCH 3/6] sd: fix up ->compat_ioctl Christoph Hellwig
2014-10-27 17:59 ` [PATCH 4/6] st: call scsi_set_medium_removal directly Christoph Hellwig
2014-10-27 17:59 ` [PATCH 5/6] osst: " Christoph Hellwig
2014-10-27 17:59 ` [PATCH 6/6] scsi: return EAGAIN when resetting a device under EH Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2014-10-30 9:27 misc scsi ioctl updates V2 Christoph Hellwig
2014-10-30 9:27 ` [PATCH 2/6] scsi: split scsi_nonblockable_ioctl Christoph Hellwig
2014-11-05 14:12 ` Hannes Reinecke
2014-11-05 14:28 ` Martin K. Petersen
2014-11-06 22:35 ` Elliott, Robert (Server Storage)
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=20141028173926.GB22593@lst.de \
--to=hch@lst.de \
--cc=Elliott@hp.com \
--cc=bvanassche@acm.org \
--cc=dgilbert@interlog.com \
--cc=linux-scsi@vger.kernel.org \
/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