direct-io.hg

changeset 13079:8752418b58d8

[XEN] Only print progress dots when scrubbing actual memory.
Signed-off-by: Jes Sorensen <jes@sgi.com>
author kfraser@localhost.localdomain
date Mon Dec 18 14:38:38 2006 +0000 (2006-12-18)
parents 469478194aef
children 4ef0dbe95eac
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Mon Dec 18 00:14:40 2006 +0000
     1.2 +++ b/xen/common/page_alloc.c	Mon Dec 18 14:38:38 2006 +0000
     1.3 @@ -490,16 +490,16 @@ void scrub_heap_pages(void)
     1.4  
     1.5      for ( mfn = first_valid_mfn; mfn < max_page; mfn++ )
     1.6      {
     1.7 -        /* Every 100MB, print a progress dot. */
     1.8 -        if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 )
     1.9 -            printk(".");
    1.10 -
    1.11          process_pending_timers();
    1.12  
    1.13          /* Quick lock-free check. */
    1.14          if ( allocated_in_map(mfn) )
    1.15              continue;
    1.16  
    1.17 +        /* Every 100MB, print a progress dot. */
    1.18 +        if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 )
    1.19 +            printk(".");
    1.20 +
    1.21          spin_lock_irq(&heap_lock);
    1.22  
    1.23          /* Re-check page status with lock held. */