]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 20:04:42 +0000 (15:04 -0500)
commitb9d4f108bed6d893606743e3b27c3db6a3ebfae5
treedda88894bed9dcf9f6bc429c30f1816497b2b1cb
parentd2df1cbe605433c61b5f1cbe3d381a7a0a7f84a1
net: unix: allow bind to fail on mutex lock

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>
net/unix/af_unix.c