mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
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)
|
||||
|
||||