direct-io.hg

changeset 4354:35abce1e2658

bitkeeper revision 1.1236.1.143 (4244ed8elupJI3lVFp62vEBqYUNJhA)

Remove some unnecessary flush_page_update_queue() calls.
Signed-off-by: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
author kaf24@firebug.cl.cam.ac.uk
date Sat Mar 26 02:25:05 2005 +0000 (2005-03-26)
parents c1b04c6c1c3f
children cc2c40950d59
files linux-2.4.29-xen-sparse/arch/xen/mm/fault.c linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.4.29-xen-sparse/arch/xen/mm/fault.c	Sat Mar 26 01:26:49 2005 +0000
     1.2 +++ b/linux-2.4.29-xen-sparse/arch/xen/mm/fault.c	Sat Mar 26 02:25:05 2005 +0000
     1.3 @@ -84,9 +84,6 @@ asmlinkage void do_page_fault(struct pt_
     1.4          error_code &= 3;
     1.5          error_code |= (regs->xcs & 2) << 1;
     1.6  
     1.7 -	/* ensure all updates have completed */
     1.8 -	flush_page_update_queue();
     1.9 -
    1.10  	/*
    1.11  	 * We fault-in kernel-space virtual memory on-demand. The
    1.12  	 * 'reference' page table is init_mm.pgd.
     2.1 --- a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c	Sat Mar 26 01:26:49 2005 +0000
     2.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c	Sat Mar 26 02:25:05 2005 +0000
     2.3 @@ -192,7 +192,6 @@ static void __init kernel_physical_mappi
     2.4  				}
     2.5  				pte_ofs = 0;
     2.6  			}
     2.7 -			flush_page_update_queue();
     2.8  		}
     2.9  		pmd_idx = 0;
    2.10  	}	
    2.11 @@ -359,9 +358,8 @@ static void __init pagetable_init (void)
    2.12  	queue_pgd_pin(__pa(new_pgd));
    2.13  	load_cr3(new_pgd);
    2.14  	queue_pgd_unpin(__pa(old_pgd));
    2.15 +	make_page_writable(old_pgd);
    2.16  	__flush_tlb_all(); /* implicit flush */
    2.17 -	make_page_writable(old_pgd);
    2.18 -	flush_page_update_queue();
    2.19  	free_bootmem(__pa(old_pgd), PAGE_SIZE);
    2.20  
    2.21  	kernel_physical_mapping_init(new_pgd);
    2.22 @@ -564,7 +562,6 @@ void __init paging_init(void)
    2.23  	zone_sizes_init();
    2.24  
    2.25  	/* Switch to the real shared_info page, and clear the dummy page. */
    2.26 -	flush_page_update_queue();
    2.27  	set_fixmap_ma(FIX_SHARED_INFO, xen_start_info.shared_info);
    2.28  	HYPERVISOR_shared_info = (shared_info_t *)fix_to_virt(FIX_SHARED_INFO);
    2.29  	memset(empty_zero_page, 0, sizeof(empty_zero_page));
     3.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c	Sat Mar 26 01:26:49 2005 +0000
     3.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c	Sat Mar 26 02:25:05 2005 +0000
     3.3 @@ -387,12 +387,6 @@ static void network_alloc_rx_buffers(str
     3.4          rx_mcl[i].args[2] = 0;
     3.5      }
     3.6  
     3.7 -    /*
     3.8 -     * We may have allocated buffers which have entries outstanding in the page
     3.9 -     * update queue -- make sure we flush those first!
    3.10 -     */
    3.11 -    flush_page_update_queue();
    3.12 -
    3.13      /* After all PTEs have been zapped we blow away stale TLB entries. */
    3.14      rx_mcl[i-1].args[2] = UVMF_FLUSH_TLB;
    3.15