]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add a test to see if a skb is freeable in irq context
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 1 Apr 2014 19:20:24 +0000 (12:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Apr 2014 21:53:36 +0000 (17:53 -0400)
commitdc89a2776d11606bb8504b4bba8bd9dfc16aa236
treee4a288169c3df023a77a70bc2538da2f3148792e
parent2fb0ebddb8b5824821b279785858ba893e1e8f3a
net: Add a test to see if a skb is freeable in irq context

Currently netpoll and skb_release_head_state assume that a skb is
freeable in hard irq context except when skb->destructor is set.

The reality is far from this.  So add a function skb_irq_freeable to
compute the full test and in the process be the living documentation
of what the requirements are of actually freeing a skb in hard irq
context.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h