[PATCH] afs: add lock annotations to afs_proc_cell_servers_{start,stop}
authorJosh Triplett <josht@us.ibm.com>
Fri, 29 Sep 2006 08:59:25 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:07 +0000 (09:18 -0700)
commit99fc705996285ed2746c0c8ae8313d0a04d62ec9
tree32e6b8feaf0e8a4682c00ef3a9b1884290d7b323
parent58f555e5f62b6a8326caf6d45ac611186f24587d
[PATCH] afs: add lock annotations to afs_proc_cell_servers_{start,stop}

afs_proc_cell_servers_start acquires a lock, and afs_proc_cell_servers_stop
releases that lock.  Add lock annotations to these two functions so that
sparse can check callers for lock pairing, and so that sparse will not
complain about these functions since they intentionally use locks in this
manner.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/afs/proc.c