direct-io.hg

changeset 8517:2a0aded8fe60

Fix the error recovery at the undo_out label in __gnttab_map_grant_ref to
not unlock the spinlock twice (which causes a BUG).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Jan 09 11:17:55 2006 +0000 (2006-01-09)
parents a848ee1c9822
children 25e3c8668f1f
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Tue Jan 03 16:29:42 2006 +0000
     1.2 +++ b/xen/common/grant_table.c	Mon Jan 09 11:17:55 2006 +0000
     1.3 @@ -312,8 +312,6 @@ static int
     1.4      if ( !act->pin )
     1.5          clear_bit(_GTF_reading, &sha->flags);
     1.6  
     1.7 -    spin_unlock(&rd->grant_table->lock);
     1.8 -
     1.9   unlock_out:
    1.10      spin_unlock(&rd->grant_table->lock);
    1.11      (void)__put_user(rc, &uop->status);