linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix lockdep build in rcu-protected get_mm_exe_file()
@ 2015-03-20 14:47 Konstantin Khlebnikov
  2015-03-23 18:11 ` Davidlohr Bueso
  0 siblings, 1 reply; 14+ messages in thread
From: Konstantin Khlebnikov @ 2015-03-20 14:47 UTC (permalink / raw)
  To: linux-mm, Andrew Morton; +Cc: linux-kernel

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
---
 kernel/fork.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/fork.c b/kernel/fork.c
index a7c596517bd6..aa2ba1a34ce8 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -696,7 +696,7 @@ void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)
 {
 	struct file *old_exe_file = rcu_dereference_protected(mm->exe_file,
 			!atomic_read(&mm->mm_users) || current->in_execve ||
-			lock_is_held(&mm->mmap_sem));
+			lockdep_is_held(&mm->mmap_sem));
 
 	if (new_exe_file)
 		get_file(new_exe_file);


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-03-25 12:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 14:47 [PATCH] mm: fix lockdep build in rcu-protected get_mm_exe_file() Konstantin Khlebnikov
2015-03-23 18:11 ` Davidlohr Bueso
2015-03-23 19:10   ` Oleg Nesterov
2015-03-24 14:38     ` Davidlohr Bueso
2015-03-24 17:13     ` Konstantin Khlebnikov
2015-03-24 18:10       ` Oleg Nesterov
2015-03-24 18:15         ` Konstantin Khlebnikov
2015-03-24 19:02           ` Oleg Nesterov
2015-03-25  1:30             ` [PATCH v2] prctl: avoid using mmap_sem for exe_file serialization Davidlohr Bueso
2015-03-25  9:21               ` Konstantin Khlebnikov
2015-03-25 10:42                 ` [PATCH v3] " Davidlohr Bueso
2015-03-25 11:08                   ` Konstantin Khlebnikov
2015-03-25 12:50                     ` Davidlohr Bueso
2015-03-25 12:53                   ` Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).