]> bbs.cooldavid.org Git - net-next-2.6.git/commit
net/core: add lock context change annotations in net/core/sock.c
authorNamhyung Kim <namhyung@gmail.com>
Wed, 8 Sep 2010 03:48:48 +0000 (03:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Sep 2010 22:02:39 +0000 (15:02 -0700)
commitf39234d60617d37818b30991e6794643ce220296
tree1aabce34fdfa06f1bc90b2281ac0a819a7df91ee
parenta700d8be733bd593ea4797dfde17aed4f35213c0
net/core: add lock context change annotations in net/core/sock.c

__lock_sock() and __release_sock() releases and regrabs lock but
were missing proper annotations. Add it. This removes following
warning from sparse. (Currently __lock_sock() does not emit any
warning about it but I think it is better to add also.)

 net/core/sock.c:1580:17: warning: context imbalance in '__release_sock' - unexpected unlock

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c