]> git.baikalelectronics.ru Git - kernel.git/commit
sock: tigthen lockdep checks for sock_owned_by_user
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 8 Apr 2016 13:11:27 +0000 (15:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 02:37:20 +0000 (22:37 -0400)
commitc1727113d2b41a41181df87a1432961b4d5d1b2e
tree643293e7032e9c3534e4de33d2a6820e75886f7d
parent4a725dbd86773d9ec17cc5af0c93b7c0ac0ae9cb
sock: tigthen lockdep checks for sock_owned_by_user

sock_owned_by_user should not be used without socket lock held. It seems
to be a common practice to check .owned before lock reclassification, so
provide a little help to abstract this check away.

Cc: linux-cifs@vger.kernel.org
Cc: linux-bluetooth@vger.kernel.org
Cc: linux-nfs@vger.kernel.org
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/cifs/connect.c
include/net/sock.h
net/bluetooth/af_bluetooth.c
net/llc/llc_proc.c
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c