public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: <random1@o-o.yi.org>
To: linux-scsi@vger.kernel.org
Subject: scsi error handling and ACPI suspend
Date: 19 Jul 2002 15:54:24 -0400	[thread overview]
Message-ID: <uvg7b334f.fsf@o-o.yi.org> (raw)


The power-management code in 2.5 presently signals all running threads
in an attempt to make them reach a quiescent state so that it can
write to disk without fighting with them over kernel resources.

When the error handler is signalled, it wakes up and exits.  On
resume, there is no error handler, and the system panics near
scsi_error.c:233

The recommended solution is to set the PF_IOTHREAD flag for the error
handler threads, which indicates that suspend should not try to stop
them.  

*** drivers/scsi/scsi_error.c	Fri Jul 19 14:48:40 2002
--- drivers/scsi/scsi_error.c.orig	Fri Jul 19 14:50:32 2002
***************
*** 1870,1876 ****
           * to any signals.
           */
  	siginitsetinv(&current->blocked, SHUTDOWN_SIGS);
- 	current->flags |= PF_IOTHREAD; /* don't let suspend stop us */
  
  	lock_kernel();
  
--- 1870,1875 ----







                 reply	other threads:[~2002-07-19 19:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=uvg7b334f.fsf@o-o.yi.org \
    --to=random1@o-o.yi.org \
    --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