bitkeeper revision 1.1661 (42a03d7dMwgNdNW-UfchOZEUQsYy9w)

Make sure we only look at the unpinned list for mms which are actually
unpinned.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
This commit is contained in:
sos22@douglas.cl.cam.ac.uk committed 2005-06-03 11:22:37 +00:00
1 parent 9703899a94
commit ec8deab9df
1 file changed
+5 -3
@@ -134,9 +134,11 @@ void destroy_context(struct mm_struct *mm)
kfree(mm->context.ldt);
mm->context.size = 0;
}
spin_lock(&mm_unpinned_lock);
list_del(&mm->context.unpinned);
spin_unlock(&mm_unpinned_lock);
if (!mm->context.pinned) {
spin_lock(&mm_unpinned_lock);
list_del(&mm->context.unpinned);
spin_unlock(&mm_unpinned_lock);
}
}
static int read_ldt(void __user * ptr, unsigned long bytecount)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.