public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: "Scott T. Smith" <scott@gelatinous.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: error handling in 2.6.x
Date: Wed, 01 Sep 2004 16:50:36 -0500	[thread overview]
Message-ID: <4136442C.2090303@us.ibm.com> (raw)
In-Reply-To: <1094069889.4883.652.camel@tinny.home.foo>

They are called from a kernel thread, so they can sleep if necessary. 
They are called with the host_lock held, so make sure to drop the lock 
before you sleep.

-Brian

Scott T. Smith wrote:
> I'm modifying an error handler for a 2.6.x driver
> (eh_device_reset_handler and eh_bus_reset_handler) and am wondering if I
> can use semaphores... is it called from a user context, or is it called
> from a "bottom half"?  Given that I see scsi_eh_%d processes on my
> machine, I assume it's called from a user context, but I just wanted to
> be sure first.
> 
> 	Scott
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center


  reply	other threads:[~2004-09-01 21:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-01 20:18 error handling in 2.6.x Scott T. Smith
2004-09-01 21:50 ` Brian King [this message]
2004-09-01 22:42   ` Scott T. Smith

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=4136442C.2090303@us.ibm.com \
    --to=brking@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=scott@gelatinous.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