From: Eric W. Biederman Date: Tue, 1 Apr 2014 19:20:24 +0000 (-0700) Subject: net: Add a test to see if a skb is freeable in irq context X-Git-Tag: v3.15-rc1~113^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=574f7194f693cd80de96a39f0c43dbb346c38a15;p=pandora-kernel.git 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" Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed