ia64/linux-2.6.18-xen.hg

changeset 600:1bd3dbfdaf0f

gntdev: Do not take mutexes in initialiser function.
From: Derek Murray <derek.murray@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 11 15:34:33 2008 +0100 (2008-07-11)
parents 29228a5f9fea
children e0c15322ff6d
files drivers/xen/gntdev/gntdev.c
line diff
     1.1 --- a/drivers/xen/gntdev/gntdev.c	Wed Jul 09 10:45:09 2008 +0100
     1.2 +++ b/drivers/xen/gntdev/gntdev.c	Fri Jul 11 15:34:33 2008 +0100
     1.3 @@ -375,9 +375,6 @@ static int init_private_data(gntdev_file
     1.4  	priv->free_list_size = max_grants;
     1.5  	priv->next_fit_index = 0;
     1.6  
     1.7 -	up_write(&priv->grants_sem);
     1.8 -	up_write(&priv->free_list_sem);
     1.9 -
    1.10  	return 0;
    1.11  
    1.12  nomem_out3: