+ lockdep-annotate-rpc_populate-for.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Lockdep: annotate rpc_populate for child-relationship of its mutex

has been added to the -mm tree.  Its filename is

     lockdep-annotate-rpc_populate-for.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Lockdep: annotate rpc_populate for child-relationship of its mutex
From: Arjan van de Ven <arjan@xxxxxxxxxxxxx>


rpc_populate is creating a child inode in a directory, and the parent
already has it's mutex locked.  Similar to the VFS code this needs
I_MUTEX_CHILD nesting annotation.

Signed-off-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/sunrpc/rpc_pipe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN net/sunrpc/rpc_pipe.c~lockdep-annotate-rpc_populate-for net/sunrpc/rpc_pipe.c
--- devel/net/sunrpc/rpc_pipe.c~lockdep-annotate-rpc_populate-for	2006-05-30 15:47:43.000000000 -0700
+++ devel-akpm/net/sunrpc/rpc_pipe.c	2006-05-30 15:47:43.000000000 -0700
@@ -557,7 +557,7 @@ rpc_populate(struct dentry *parent,
 	struct dentry *dentry;
 	int mode, i;
 
-	mutex_lock(&dir->i_mutex);
+	mutex_lock_nested(&dir->i_mutex, I_MUTEX_CHILD);
 	for (i = start; i < eof; i++) {
 		dentry = d_alloc_name(parent, files[i].name);
 		if (!dentry)
_

Patches currently in -mm which might be from arjan@xxxxxxxxxxxxx are

git-acpi.patch
git-infiniband.patch
git-mtd.patch
vdso-randomize-the-i386-vdso-by-moving-it-into-a-vma.patch
vdso-randomize-the-i386-vdso-by-moving-it-into-a-vma-tidy.patch
vdso-randomize-the-i386-vdso-by-moving-it-into-a-vma-arch_vma_name-fix.patch
vdso-randomize-the-i386-vdso-by-moving-it-into-a-vma-vs-x86_64-mm-reliable-stack-trace-support-i386.patch
vdso-randomize-the-i386-vdso-by-moving-it-into-a-vma-vs-x86_64-mm-reliable-stack-trace-support-i386-2.patch
lock-validator-special-locking-sb-s_umount-2.patch
lockdep-annotate-rpc_populate-for.patch
debug-shared-irqs.patch
vdso-print-fatal-signals.patch
vdso-improve-print_fatal_signals-support-by-adding-memory-maps.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux