From: Matthew Wilcox <matthew@wil.cx>
To: Zhao Forrest <forrest.zhao@gmail.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Sample implementation of a scheme to handle missing interrupts
Date: Mon, 28 Jul 2008 05:58:08 -0600 [thread overview]
Message-ID: <20080728115807.GD18026@parisc-linux.org> (raw)
In-Reply-To: <ac8af0be0807280250n1684d3fco65631623cd8f60b0@mail.gmail.com>
On Mon, Jul 28, 2008 at 05:50:23PM +0800, Zhao Forrest wrote:
> I'm new to sym2 driver, but have a generic question: is it safe to
> call an interrupt handler(i.e. sym53c8xx_intr() in this case) in the
> context of process(i.e. SCSI midlayer thread in this case)?
Not in general. I should have disabled interrupts before calling into
sym53c8xx_intr() (or in my specific case, just called sym_interrupt()).
It very much depends on how the specific driver is written.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
next prev parent reply other threads:[~2008-07-28 11:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 5:56 Sample implementation of a scheme to handle missing interrupts Matthew Wilcox
2008-07-28 9:50 ` Zhao Forrest
2008-07-28 11:58 ` Matthew Wilcox [this message]
2008-07-28 19:01 ` Moore, Eric
2008-07-28 20:45 ` James Bottomley
2008-07-29 23:38 ` Moore, Eric
2008-08-03 17:59 ` James Bottomley
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=20080728115807.GD18026@parisc-linux.org \
--to=matthew@wil.cx \
--cc=forrest.zhao@gmail.com \
--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