]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 1 Nov 2012 16:02:15 +0000 (12:02 -0400)
commitb5d0e27929e6033b1f780cb311cdb3333956e0dd
treec02d582040f676b2508134d741cb855141e11684
parentae2bdbfe9d5a520c8c4e394ecbb0cccf21068a7a
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