login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
3
Re: [PATCH] net: fix race in process_backlog
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
David Miller <davem@...>
To: <shemminger@...>
Cc: <a.p.zijlstra@...>, <linux-kernel@...>, <netdev@...>, <jdike@...>
Subject:
Re: [PATCH] net: fix race in process_backlog
Date: Wednesday, October 3, 2007 - 7:39 pm
From: Stephen Hemminger <shemminger@linux-foundation.org> Date: Wed, 3 Oct 2007 15:05:19 -0700
quoted text
> On Wed, 03 Oct 2007 14:58:07 -0700 (PDT) > David Miller <davem@davemloft.net> wrote: > > > From: Peter Zijlstra <a.p.zijlstra@chello.nl> > > Date: Wed, 03 Oct 2007 17:44:53 +0200 > > > > > Index: linux-2.6/net/core/dev.c > > > =================================================================== > > > --- linux-2.6.orig/net/core/dev.c > > > +++ linux-2.6/net/core/dev.c > > > @@ -2095,11 +2095,11 @@ static int process_backlog(struct napi_s > > > > > > local_irq_disable(); > > > skb = __skb_dequeue(&queue->input_pkt_queue); > > > - local_irq_enable(); > > > if (!skb) { > > > - napi_complete(napi); > > > + __napi_complete(napi); > > > break; > > > } > > > + local_irq_enable(); > > > > What re-enables interrupts in the !skb path? > > This looks like a better fix. the irq_enable is needed in both cases.
Yep, applied, thanks Peter and Stephen. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] net: fix race in process_backlog
, Peter Zijlstra
, (Wed Oct 3, 11:44 am)
Re: [PATCH] net: fix race in process_backlog
, David Miller
, (Wed Oct 3, 5:58 pm)
Re: [PATCH] net: fix race in process_backlog
, Stephen Hemminger
, (Wed Oct 3, 6:05 pm)
Re: [PATCH] net: fix race in process_backlog
, David Miller
, (Wed Oct 3, 7:39 pm)
Re: [PATCH] net: fix race in process_backlog
, Stephen Hemminger
, (Wed Oct 3, 12:15 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Vu Pham
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
Re: -mm merge plans for 2.6.23 -- sys_fallocate
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 28/37] dccp: Integration of dynamic feature activation - part 3 (client side)
David Miller
Re: htb parallelism on multi-core platforms
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
604 guests
online.
Online users
extondentist01
hotelruralcon
fastfatloss
Syndicate