]> git.baikalelectronics.ru Git - kernel.git/commit
[NET] napi: use non-interruptible sleep in napi_disable
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Oct 2007 11:23:22 +0000 (04:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2007 11:23:22 +0000 (04:23 -0700)
commitee829d7181057dba8ecc0647b86fe7e0a7395f3e
tree31a051c83d664f0b602d45c3d6599028a0d59dbb
parentaa330422264cd1c1da7ca5e7949f4c961fe5809c
[NET] napi: use non-interruptible sleep in napi_disable

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>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h