From: Johan Hedberg Date: Wed, 25 Sep 2013 10:26:04 +0000 (+0300) Subject: Bluetooth: Add clarifying comment to bt_sock_wait_state() X-Git-Tag: accepted/tizen/common/20141203.182822~1141^2~225^2~24^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fba96f97bba73469dd952319fddc4a3cc99dd97;p=platform%2Fkernel%2Flinux-arm64.git Bluetooth: Add clarifying comment to bt_sock_wait_state() The bt_sock_wait_state requires the sk lock to be held (through lock_sock) so document it clearly in the code. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index c600631..e6e1278 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c @@ -490,6 +490,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) } EXPORT_SYMBOL(bt_sock_ioctl); +/* This function expects the sk lock to be held when called */ int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) { DECLARE_WAITQUEUE(wait, current);