]> git.baikalelectronics.ru Git - kernel.git/commit
skb: Add skb_head_is_locked helper function
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 3 May 2012 01:09:42 +0000 (01:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 17:18:37 +0000 (13:18 -0400)
commit1c775b8c1e6550d73702c64507830cd0ad6effc3
tree9dc10e067f2364fd3590b38cd5db495cd09c32e6
parent6c2e38d02b92d8cc30c559eba066bc57840fc701
skb: Add skb_head_is_locked helper function

This patch adds support for a skb_head_is_locked helper function.  It is
meant to be used any time we are considering transferring the head from
skb->head to a paged frag.  If the head is locked it means we cannot remove
the head from the skb so it must be copied or we must take the skb as a
whole.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/tcp_input.c