[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100710.194928.116377282.davem@davemloft.net>
Date: Sat, 10 Jul 2010 19:49:28 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
Cc: ken_kawasaki@...ing.nifty.jp, netdev@...r.kernel.org
Subject: Re: [PATCH kernel 2.6.35-rc3-git7] axnet_cs: use spin_lock_irqsave
in ax_interrupt
From: Ben Hutchings <bhutchings@...arflare.com>
Date: Sun, 11 Jul 2010 03:46:28 +0100
> On Sat, 2010-07-10 at 20:18 +0900, Ken Kawasaki wrote:
>> axnet_cs:
>> use spin_lock_irqsave instead of spin_lock in ax_interrupt
> [...]
>
> I assume this is because it's now called from ei_watchdog() and not only
> from interrupt context. Perhaps you should explain that in the commit
> message.
No, interrupt handlers in general may not assume that interrupts
are off or on when they are invoked.
Therefore they must use irqflags saving/restoring.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists