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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 15 Feb 2014 19:20:09 +0000 (19:20 +0000)
commit2e737a8ace4d0ad5f15aec3fd4367282d0273321
treef1bf52f6dfeb4d81aa5f1200a6c2c440020c83d0
parent6e890b0aa10bfdd826139cae3cefc856db151028
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: Ben Hutchings <ben@decadent.org.uk>
net/unix/af_unix.c