ia64/xen-unstable

changeset 8041:877d738e7a40

Quieten down grant-table transfer failure when it is because
a domain is dying.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Nov 24 19:49:15 2005 +0100 (2005-11-24)
parents 0ea18c1ea134
children f887ddae2b03
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Thu Nov 24 19:40:18 2005 +0100
     1.2 +++ b/xen/common/grant_table.c	Thu Nov 24 19:49:15 2005 +0100
     1.3 @@ -726,10 +726,11 @@ gnttab_transfer(
     1.4               unlikely(e->tot_pages >= e->max_pages) ||
     1.5               unlikely(!gnttab_prepare_for_transfer(e, d, gop.ref)) )
     1.6          {
     1.7 -            DPRINTK("gnttab_transfer: Transferee has no reservation headroom "
     1.8 -                    "(%d,%d) or provided a bad grant ref (%08x) or "
     1.9 -                    "is dying (%lx)\n",
    1.10 -                    e->tot_pages, e->max_pages, gop.ref, e->domain_flags);
    1.11 +            if ( !test_bit(_DOMF_dying, &e->domain_flags) )
    1.12 +                DPRINTK("gnttab_transfer: Transferee has no reservation "
    1.13 +                        "headroom (%d,%d) or provided a bad grant ref (%08x) "
    1.14 +                        "or is dying (%lx)\n",
    1.15 +                        e->tot_pages, e->max_pages, gop.ref, e->domain_flags);
    1.16              spin_unlock(&e->page_alloc_lock);
    1.17              put_domain(e);
    1.18              (void)__put_user(GNTST_general_error, &uop[i].status);