ia64/linux-2.6.18-xen.hg

changeset 788:26ddc59c674d

xenfb: Revert mm_lock changes. They're not needed.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 30 10:54:10 2009 +0000 (2009-01-30)
parents 98897f04b338
children 25cc543a02e8
files drivers/xen/fbfront/xenfb.c
line diff
     1.1 --- a/drivers/xen/fbfront/xenfb.c	Fri Jan 30 10:52:47 2009 +0000
     1.2 +++ b/drivers/xen/fbfront/xenfb.c	Fri Jan 30 10:54:10 2009 +0000
     1.3 @@ -210,6 +210,8 @@ static void xenfb_update_screen(struct x
     1.4  	if (xenfb_queue_full(info))
     1.5  		return;
     1.6  
     1.7 +	mutex_lock(&info->mm_lock);
     1.8 +	
     1.9  	spin_lock_irqsave(&info->dirty_lock, flags);
    1.10  	if (info->dirty){
    1.11  		info->dirty = 0;
    1.12 @@ -221,12 +223,11 @@ static void xenfb_update_screen(struct x
    1.13  		info->x2 = info->y2 = 0;
    1.14  	} else {
    1.15  		spin_unlock_irqrestore(&info->dirty_lock, flags);
    1.16 +		mutex_unlock(&info->mm_lock);
    1.17  		return;
    1.18  	}
    1.19  	spin_unlock_irqrestore(&info->dirty_lock, flags);
    1.20  
    1.21 -	mutex_lock(&info->mm_lock);
    1.22 -	
    1.23  	list_for_each_entry(map, &info->mappings, link) {
    1.24  		if (!map->faults)
    1.25  			continue;