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
:
Linus Torvalds
Linux 2.6.21-rc4
Jens Axboe
[PATCH 0/8] IO queuing and complete affinity
Nicholas A. Bellinger
Re: Integration of SCST in the mainstream Linux kernel
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Ingo Molnar
Re: [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000...
Gerrit Renker
[PATCH 19/37] dccp: Header option insertion routine for feature-negotiation
Gary Thomas
Marvell 88E609x switch?
linux-fsdevel
:
Jamie Lokier
Re: silent semantic changes with reiser4
Jan Kara
[PATCH 10/16] ext4: Remove syncing logic from ext4_file_write
Jack Stone
Re: Versioning file system
Jens Axboe
[PATCH 8/8] vm: Add an tuning knob for vm.max_writeback_pages
Colocation donated by:
Who's online
There are currently
0 users
and
1225 guests
online.
Syndicate