The patch titled afs: add lock annotations to afs_proc_cell_servers_{start,stop} has been added to the -mm tree. Its filename is afs-add-lock-annotations-to-afs_proc_cell_servers_startstop.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: afs: add lock annotations to afs_proc_cell_servers_{start,stop} From: Josh Triplett <josht@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/afs/proc.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN fs/afs/proc.c~afs-add-lock-annotations-to-afs_proc_cell_servers_startstop fs/afs/proc.c --- a/fs/afs/proc.c~afs-add-lock-annotations-to-afs_proc_cell_servers_startstop +++ a/fs/afs/proc.c @@ -775,6 +775,7 @@ static int afs_proc_cell_servers_release * 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( * 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; _ Patches currently in -mm which might be from josht@xxxxxxxxxx are release-dentry_lock-in-an-error-path-of-nfs_path.patch remove-incorrect-unlock_kernel-from-allocation.patch remove-incorrect-unlock_kernel-from-failure-path-in.patch add-entry-for-efs-filesystem-to-maintainers-as-orphan.patch ufs-remove-incorrect-unlock_kernel-from-failure-path-in-ufs_symlink.patch efi-add-lock-annotations-for-efi_call_phys_prelog-and-efi_call_phys_epilog.patch mbcache-add-lock-annotation-for-__mb_cache_entry_release_unlock.patch afs-add-lock-annotations-to-afs_proc_cell_servers_startstop.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html