login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-netdev
»
2008
»
March
»
27
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
Date: Thursday, March 27, 2008 - 5:23 am
akpm@linux-foundation.org
wrote:
quoted text
> From: Marin Mitov <mitov@issp.bas.bg> > > According to: Documentation/networking/netdevices.txt: > > <cite> > napi->poll: > .......... > Context: softirq > will be called with interrupts disabled by netconsole. > </cite> > > napi->poll() could be called either with interrupts enabled > (in softirq context) or disabled (by netconsole), so the irq flag > should be preserved. > > Inspired by Ingo's resent forcedeth patch :-) > > Signed-off-by: Marin Mitov <mitov@issp.bas.bg> > Acked-by: David S. Miller <davem@davemloft.net> > Cc: Jeff Garzik <jeff@garzik.org> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- > > drivers/net/skge.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff -puN drivers/net/skge.c~skge-napi-poll-locking-bug drivers/net/skge.c > --- a/drivers/net/skge.c~skge-napi-poll-locking-bug > +++ a/drivers/net/skge.c > @@ -3199,12 +3199,14 @@ static int skge_poll(struct napi_struct > skge_write8(hw, Q_ADDR(rxqaddr[skge->port], Q_CSR), CSR_START); > > if (work_done < to_do) { > - spin_lock_irq(&hw->hw_lock); > + unsigned long flags; > + > + spin_lock_irqsave(&hw->hw_lock, flags); > __netif_rx_complete(dev, napi); > hw->intr_mask |= napimask[skge->port]; > skge_write32(hw, B0_IMSK, hw->intr_mask); > skge_read32(hw, B0_IMSK); > - spin_unlock_irq(&hw->hw_lock); > + spin_unlock_irqrestore(&hw->hw_lock, flags);
davem already has this -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch for 2.6.25? 3/3] skge napi->poll() locking bug
, akpm
, (Thu Mar 27, 12:45 am)
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
, Marin Mitov
, (Thu Mar 27, 3:03 am)
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
, Jeff Garzik
, (Thu Mar 27, 5:23 am)
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
, Andrew Morton
, (Thu Mar 27, 10:11 am)
Re: [patch for 2.6.25? 3/3] skge napi->poll() locking bug
, David Miller
, (Thu Mar 27, 2:57 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
S K
Re: cpufreq doesn't seem to work in Intel Q9300
Bart Van Assche
Re: Is gcc thread-unsafe?
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric W. Biederman
[PATCH 14/20] net: Simplify pppol2tp pernet operations.
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
sm501: add power control callback
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Colocation donated by:
Syndicate