From: Willem Riede <wrlk@riede.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Zwane Mwaikambo <zwane@holomorphy.com>,
dan carpenter <d_carpenter@sbcglobal.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Any hope for ide-scsi (error handling)?
Date: Sat, 15 Mar 2003 19:55:56 -0500 [thread overview]
Message-ID: <20030316005556.GM7082@linnie.riede.org> (raw)
In-Reply-To: <1047777805.1327.23.camel@irongate.swansea.linux.org.uk>; from alan@lxorguk.ukuu.org.uk on Sat, Mar 15, 2003 at 20:23:26 -0500
On 2003.03.15 20:23 Alan Cox wrote:
> On Sat, 2003-03-15 at 21:01, Willem Riede wrote:
> > It may not be elegant to schedule(1) with the lock taken, but it
> > does work.
>
> You can't sleep holding a lock. You also can't null the hwgroup that
> way and you have to deal with some other locking concerns. Have a look
> how HDIO_*_RESET is handled in the very latest 2.4/2.5-ac code and
> you should be able to follow from that. Note your code paths will be
> much like the ioctl as the existing reset code paths are for paths
> where we abort from a known safe state (drive initiated or locked).
>
> With the stuff there now you should be able to abort the command
> fairly cleanly and then reset the interface.
>
I hear you, and I will take a hard look at that code. But please
realize, that if we get to this code segment, the drive has _not_
responded to the regular command and is in an _unknown_ state.
Thanks, Willem Riede.
next prev parent reply other threads:[~2003-03-16 0:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-15 18:55 Zwane Mwaikambo
2003-03-15 2:05 ` dan carpenter
2003-03-15 19:53 ` Zwane Mwaikambo
2003-03-15 2:52 ` dan carpenter
2003-03-15 20:23 ` Zwane Mwaikambo
2003-03-15 21:01 ` Willem Riede
2003-03-15 4:43 ` dan carpenter
2003-03-15 21:11 ` Zwane Mwaikambo
2003-03-15 22:29 ` Willem Riede
2003-03-16 1:23 ` Alan Cox
2003-03-16 0:55 ` Willem Riede [this message]
2003-03-16 21:41 ` Alan Cox
2003-03-15 20:25 ` bert hubert
2003-03-15 20:41 ` Zwane Mwaikambo
2003-03-15 20:55 ` Zwane Mwaikambo
2003-03-16 1:05 ` Alan Cox
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=20030316005556.GM7082@linnie.riede.org \
--to=wrlk@riede.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=d_carpenter@sbcglobal.net \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@holomorphy.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
all inboxes | Powered by JetHome®