ia64/xen-unstable

changeset 7631:a45408260abb

Check correct flag in grant transfer - this eliminates the most common
source of 'zombie-' domains.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Sat Nov 05 10:54:12 2005 +0100 (2005-11-05)
parents a969d918674e
children 2e880b1fbe84
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Fri Nov 04 16:01:49 2005 +0100
     1.2 +++ b/xen/common/grant_table.c	Sat Nov 05 10:54:12 2005 +0100
     1.3 @@ -781,7 +781,7 @@ gnttab_transfer(
     1.4           * headroom.  Also, a domain mustn't have PGC_allocated
     1.5           * pages when it is dying.
     1.6           */
     1.7 -        if ( unlikely(test_bit(DOMFLAGS_DYING, &e->domain_flags)) ||
     1.8 +        if ( unlikely(test_bit(_DOMF_dying, &e->domain_flags)) ||
     1.9               unlikely(e->tot_pages >= e->max_pages) ||
    1.10               unlikely(!gnttab_prepare_for_transfer(e, d, gop->ref)) )
    1.11          {