[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49E98AD5.2010008@cosmosbay.com>
Date: Sat, 18 Apr 2009 10:09:57 +0200
From: Eric Dumazet <dada1@...mosbay.com>
To: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
CC: netdev@...r.kernel.org
Subject: Re: What is lock_sock() before skb_free_datagram() for?
Tetsuo Handa a écrit :
> Hello.
>
> udp_recvmsg() and udpv6_recvmsg() call skb_free_datagram() with
> lock_sock().
> But raw_recvmsg() and rawv6_recvmsg() call skb_free_datagram()
> without
> lock_sock().
> Is it OK?
Yes it is.
UDP protocol has memory accounting in recent kernels, not RAW.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists