From: Amol Lad <amol@verismonetworks.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Andrew Morton <akpm@osdl.org>,
James.Bottomley@steeleye.com,
linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/scsi/mca_53c9x.c : save_flags()/cli() removal
Date: Wed, 08 Nov 2006 10:56:25 +0530 [thread overview]
Message-ID: <1162963585.22062.173.camel@amol.verismonetworks.com> (raw)
In-Reply-To: <20061107222946.GA20332@infradead.org>
On Tue, 2006-11-07 at 22:29 +0000, Christoph Hellwig wrote:
> On Mon, Nov 06, 2006 at 06:12:11PM +0530, Amol Lad wrote:
> > Replaced save_flags()/cli() with spin_lock alternatives
>
> This patch has very little chance to work as-is because it only replaces
> cli with spinlocks, but not the irq handler it's locking against.
>
It protects against irq handler also.
drivers/scsi/NCR53C9x.c:
irqreturn_t esp_intr(int irq, void *dev_id)
{
struct NCR_ESP *esp;
unsigned long flags;
int again;
struct Scsi_Host *dev = dev_id;
/* Handle all ESP interrupts showing at this IRQ level. */
spin_lock_irqsave(dev->host_lock, flags);
...
...
}
next prev parent reply other threads:[~2006-11-08 5:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 12:42 Amol Lad
2006-11-07 20:53 ` Andrew Morton
2006-11-08 0:19 ` James Bottomley
2006-11-08 5:36 ` Amol Lad
2006-11-08 15:36 ` Alan Cox
2006-11-07 22:29 ` Christoph Hellwig
2006-11-08 5:26 ` Amol Lad [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-07 6:51 Amol Lad
2006-10-16 6:49 [PATCH] drivers/scsi/mca_53c9x.c: " Amol Lad
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=1162963585.22062.173.camel@amol.verismonetworks.com \
--to=amol@verismonetworks.com \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=hch@infradead.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®