[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Make sure we only look at the unpinned list for mms which are actually



ChangeSet 1.1661, 2005/06/03 12:22:37+01:00, sos22@xxxxxxxxxxxxxxxxxxxx

        Make sure we only look at the unpinned list for mms which are actually
        unpinned.
        
        Signed-off-by: Steven Smith <sos22@xxxxxxxxx>



 ldt.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ldt.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ldt.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ldt.c        2005-06-03 
10:01:33 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ldt.c        2005-06-03 
10:01:33 -04:00
@@ -134,9 +134,11 @@
                        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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.