Hi Eric,

On Tue, Nov 17, 2015, at 15:42, Eric Dumazet wrote:
> 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 ?

I want to move to unix_state_lock and completely drop sk_buff_head.lock
in af_unix, as such I would prefer to keep it this way as in some other
places in af_unix.c (e.g. unix_stream_connect).

Or do you have a strong opinion on that?

Thanks,
Hannes
--
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