From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: wrlk@riede.org
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: 16 Mar 2003 01:23:26 +0000 [thread overview]
Message-ID: <1047777805.1327.23.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <20030315210120.GI7082@linnie.riede.org>
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.
next prev parent reply other threads:[~2003-03-16 0:03 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 [this message]
2003-03-16 0:55 ` Willem Riede
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=1047777805.1327.23.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=d_carpenter@sbcglobal.net \
--cc=linux-kernel@vger.kernel.org \
--cc=wrlk@riede.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®