login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
25
Re: [PATCH] napi: use non-interruptible sleep in napi_disable
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeff Garzik <jeff@...>
To: Benjamin Herrenschmidt <benh@...>
Cc: <netdev@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [PATCH] napi: use non-interruptible sleep in napi_disable
Date: Thursday, October 25, 2007 - 1:10 am
Benjamin Herrenschmidt wrote:
quoted text
> The current napi_disable() uses msleep_interruptible() but doesn't > (and can't) exit in case there's a signal, thus ending up doing a > hot spin without a cpu_relax. Use uninterruptible sleep instead. > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> > --- > > include/linux/netdevice.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-work/include/linux/netdevice.h > =================================================================== > --- linux-work.orig/include/linux/netdevice.h 2007-10-17 12:39:16.000000000 +1000 > +++ linux-work/include/linux/netdevice.h 2007-10-17 12:45:00.000000000 +1000 > @@ -390,7 +390,7 @@ static inline void napi_complete(struct > static inline void napi_disable(struct napi_struct *n) > { > while (test_and_set_bit(NAPI_STATE_SCHED, &n->state)) > - msleep_interruptible(1); > + msleep(1); > }
ACK -
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] napi: use non-interruptible sleep in napi_disable
, Benjamin Herrenschmidt
, (Wed Oct 24, 11:59 pm)
Re: [PATCH] napi: use non-interruptible sleep in napi_disable
, Jeff Garzik
, (Thu Oct 25, 1:10 am)
Re: [PATCH] napi: use non-interruptible sleep in napi_disable
, David Miller
, (Fri Oct 26, 7:23 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Heiko Carstens
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Tony Lindgren
[PATCH 37/90] ARM: OMAP: MPUIO wake updates
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Benjamin Herrenschmidt
Re: powerpc allmodconfig
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
643 guests
online.
Syndicate