]> rtime.felk.cvut.cz Git - linux-imx.git/commit
SUNRPC: remove BUG_ONs from *_reclassify_socket*
authorWeston Andros Adamson <dros@netapp.com>
Tue, 23 Oct 2012 14:43:39 +0000 (10:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:41 +0000 (14:43 -0500)
commit1b7a1819078c68c4df4bba90f76b8113a08460de
tree28e13809dd756d0be47526787c462aad4f3462e6
parent1bd58aaff44485ec9e3640af350f6ba1b33e2bec
SUNRPC: remove BUG_ONs from *_reclassify_socket*

Replace multiple BUG_ON() calls with WARN_ON_ONCE() and early return when
sanity checking socket ownership (lock). The bind call will fail if the
socket was unsuccessfully reclassified.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c