Commit 0ae26f1b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[PATCH] mmput() might sleep

exit_aio() and exit_mmap() can sleep.  But it's easy to accidentally call
mmput() from inside locks.

Cc: Dave Peterson <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 32797f97
......@@ -368,6 +368,8 @@ void fastcall __mmdrop(struct mm_struct *mm)
void mmput(struct mm_struct *mm)
if (atomic_dec_and_test(&mm->mm_users)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment