On Tue, 2015-11-17 at 15:10 +0100, Hannes Frederic Sowa wrote:
> While possibly in future we don't necessarily need to use
> sk_buff_head.lock this is a rather larger change, as it affects the
> af_unix fd garbage collector, diag and socket cleanups. This is too much
> for a stable patch.
> 
> For the time being grab sk_buff_head.lock without disabling bh and irqs,
> so don't use locked skb_queue_tail.

I would use skb_queue_tail() as we already use it in two different
places in af_unix.c, like unix_stream_sendmsg()

It is hardly a fast path anyway, so lets keep code short.

Then, in net-next, if you really want, add a new skb_queue_tail_lock()
or similar helper ?



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to