net: unix: allow bind to fail on mutex lock
authorSasha Levin <sasha.levin@oracle.com>
Fri, 13 Dec 2013 15:54:22 +0000 (10:54 -0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:54:07 +0000 (07:54 +0200)
commitdc332885abd71f603e01d8b27636a935c313d1c2
treeccaee50d0e254823513efd5f6d296f5703f6d3b5
parent9f308b7eb7b44f93fc814dce31f58a200f73d19c
net: unix: allow bind to fail on mutex lock

[ Upstream commit 37ab4fa7844a044dc21fde45e2a0fc2f3c3b6490 ]

This is similar to the set_peek_off patch where calling bind while the
socket is stuck in unix_dgram_recvmsg() will block and cause a hung task
spew after a while.

This is also the last place that did a straightforward mutex_lock(), so
there shouldn't be any more of these patches.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/unix/af_unix.c