From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] I/O error handling for userspace
Date: Tue, 07 Dec 2004 00:40:28 +0000 [thread overview]
Message-ID: <200412061640.28787.jbarnes@engr.sgi.com> (raw)
In-Reply-To: <200412030831.25662.jbarnes@engr.sgi.com>
On Monday, December 6, 2004 4:38 pm, Keith Owens wrote:
> >We need to do a few things in order to ensure safety (this should apply to
> > the double bit memory error case too I think):
> > o make sure the process doesn't run until we've tried to recover from
> > the error
> > o don't take any locks while we're in machine check context
> > o don't destroy our current context since we may want to resume to it
> > eventually (esp. in the case where we received the machine check in
> > kernel context)
> >
> >So, given the above, maybe we could put the process in a TASK_STOPPED
> > state and pend a scheduler tick on the CPU where we took the machine
> > check? that point, we could also wake up an MCA worker thread or raise an
> > MCA interrupt (maybe using the NMI interrupt vector, it's high priority
> > and isn't used right now) to send the signal or do whatever cleanup was
> > needed.
>
> You seem to be assuming that the offending process is currently
> running. I don't see how that is guaranteed, the task could start the
> I/O then sleep waiting for completion. When the MCA arrives, any task
> could be in control of the cpu, including the idle task.
No, I just left that part out. For the case of I/O reads (and even memory
errors) we have a reverse mapping from the failing address to its owning
process, so we can figure out who to signal from any context. What I'd like
to avoid is destroying the current context, like we do in the double bit
error case now when we recover into the mca bh handler.
Jesse
next prev parent reply other threads:[~2004-12-07 0:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-03 16:31 [RFC] I/O error handling for userspace Jesse Barnes
2004-12-03 16:43 ` Jesse Barnes
2004-12-06 12:42 ` Hidetoshi Seto
2004-12-06 16:13 ` Jesse Barnes
2004-12-06 16:59 ` Jesse Barnes
2004-12-06 17:05 ` Jesse Barnes
2004-12-06 22:56 ` Jesse Barnes
2004-12-06 23:51 ` Keith Owens
2004-12-07 0:38 ` Keith Owens
2004-12-07 0:40 ` Jesse Barnes [this message]
2004-12-07 1:29 ` Keith Owens
2004-12-07 1:36 ` Jesse Barnes
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=200412061640.28787.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@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