Skip to contentSkip to conversation

lockdep patches

GIT PULL Peter Zijlstra 1 participant 1 message Jul 22, 2009 VFS

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull these lockdep patches from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-lockdep.git lockdep-for-linus

Thanks,

Peter

---
Peter Zijlstra (1):
lockdep: Fix lockdep annotation for pipe_double_lock()

 fs/pipe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/pipe.c +2 -2
index f7dd21a..52c4151 100644
@@ -68,8 +68,8 @@ void pipe_double_lock(struct pipe_inode_info *pipe1,
 		pipe_lock_nested(pipe1, I_MUTEX_PARENT);
 		pipe_lock_nested(pipe2, I_MUTEX_CHILD);
 	} else {
-		pipe_lock_nested(pipe2, I_MUTEX_CHILD);
-		pipe_lock_nested(pipe1, I_MUTEX_PARENT);
+		pipe_lock_nested(pipe2, I_MUTEX_PARENT);
+		pipe_lock_nested(pipe1, I_MUTEX_CHILD);
 	}
 }