summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-07 17:48:13 -0800
committerTrond Myklebust <trond.myklebust@fys.uio.no>2003-01-07 17:48:13 -0800
commit90c4bb0523a4fa08090f5123400eebc3e6fbeaf1 (patch)
tree8e9bf5ad9cff8c6b4ebc3beb68cbcda46bf785ef /kernel
parentbebaf4f07b7438f88e2feb088ec2ecd0c0a71937 (diff)
[PATCH] AIO exit fix
We need to run exit_aio() when the final user of the mm goes away, else lots of things leak. Also remove a printk which comes out when this change is made. This patch was acked by bcrl.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 60d6d54142c6..1850fb64fd5d 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -380,6 +380,7 @@ void mmput(struct mm_struct *mm)
list_del(&mm->mmlist);
mmlist_nr--;
spin_unlock(&mmlist_lock);
+ exit_aio(mm);
exit_mmap(mm);
mmdrop(mm);
}