summaryrefslogtreecommitdiffstats
path: root/fs/afs/proc.c
diff options
context:
space:
mode:
authorJosh Triplett <josht@us.ibm.com>2006-09-29 10:59:25 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 18:18:07 +0200
commit99fc705996285ed2746c0c8ae8313d0a04d62ec9 (patch)
tree32e6b8feaf0e8a4682c00ef3a9b1884290d7b323 /fs/afs/proc.c
parent[PATCH] mbcache: add lock annotation for __mb_cache_entry_release_unlock() (diff)
downloadlinux-99fc705996285ed2746c0c8ae8313d0a04d62ec9.tar.xz
linux-99fc705996285ed2746c0c8ae8313d0a04d62ec9.zip
[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>
Diffstat (limited to 'fs/afs/proc.c')
-rw-r--r--fs/afs/proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/proc.c b/fs/afs/proc.c
index 101d21b6c037..86463ec9ccb4 100644
--- a/fs/afs/proc.c
+++ b/fs/afs/proc.c
@@ -775,6 +775,7 @@ static int afs_proc_cell_servers_release(struct inode *inode,
* first item
*/
static void *afs_proc_cell_servers_start(struct seq_file *m, loff_t *_pos)
+ __acquires(m->private->sv_lock)
{
struct list_head *_p;
struct afs_cell *cell = m->private;
@@ -823,6 +824,7 @@ static void *afs_proc_cell_servers_next(struct seq_file *p, void *v,
* clean up after reading from the cells list
*/
static void afs_proc_cell_servers_stop(struct seq_file *p, void *v)
+ __releases(p->private->sv_lock)
{
struct afs_cell *cell = p->private;