ia64/xen-unstable

changeset 2074:5c45177abff2

bitkeeper revision 1.1139.1.1 (4110b72fhtHFIf4Ul13KpCx5pOkJ7w)

Make pages used for LDT writable when they get freed.
Fixes ltp thread creation test failure.
author cl349@freefall.cl.cam.ac.uk
date Wed Aug 04 10:15:11 2004 +0000 (2004-08-04)
parents 1bf968edc6a5
children a3e585a0c6ca
files linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c
line diff
     1.1 --- a/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c	Tue Aug 03 18:11:17 2004 +0000
     1.2 +++ b/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c	Wed Aug 04 10:15:11 2004 +0000
     1.3 @@ -71,6 +71,9 @@ static int alloc_ldt(mm_context_t *pc, i
     1.4  #endif
     1.5  	}
     1.6  	if (oldsize) {
     1.7 +		make_pages_writeable(oldldt, (oldsize * LDT_ENTRY_SIZE) /
     1.8 +			PAGE_SIZE);
     1.9 +		flush_page_update_queue();
    1.10  		if (oldsize*LDT_ENTRY_SIZE > PAGE_SIZE)
    1.11  			vfree(oldldt);
    1.12  		else