[PKTGEN]: Sleeping function called under lock
authorStephen Hemminger <shemminger@osdl.org>
Fri, 14 Oct 2005 22:26:34 +0000 (15:26 -0700)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Wed, 26 Oct 2005 02:03:12 +0000 (00:03 -0200)
commitb7c8921bf1a8a9c1907b1eeb029d3f167be226f3
tree8b3fcc1f10d297ddde054f8be887cd09129e0320
parent670c02c2bfd2c8a305a90f5285409a7b0a8fd630
[PKTGEN]: Sleeping function called under lock

pktgen is calling kmalloc GFP_KERNEL and vmalloc with lock held.
The simplest fix is to turn the lock into a semaphore, since the
thread lock is only used for admin control from user context.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/core/pktgen.c