WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] xenfb: Revert mm_lock changes. They'r

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xenfb: Revert mm_lock changes. They're not needed.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Jan 2009 14:55:05 -0800
Delivery-date: Fri, 30 Jan 2009 14:54:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233312850 0
# Node ID 26ddc59c674df460cb36651ffe58bf30e46b1638
# Parent  98897f04b338f08686eba199d6234a95cf0939f1
xenfb: Revert mm_lock changes. They're not needed.
Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
---
 drivers/xen/fbfront/xenfb.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 98897f04b338 -r 26ddc59c674d drivers/xen/fbfront/xenfb.c
--- a/drivers/xen/fbfront/xenfb.c       Fri Jan 30 10:52:47 2009 +0000
+++ b/drivers/xen/fbfront/xenfb.c       Fri Jan 30 10:54:10 2009 +0000
@@ -210,6 +210,8 @@ static void xenfb_update_screen(struct x
        if (xenfb_queue_full(info))
                return;
 
+       mutex_lock(&info->mm_lock);
+       
        spin_lock_irqsave(&info->dirty_lock, flags);
        if (info->dirty){
                info->dirty = 0;
@@ -221,12 +223,11 @@ static void xenfb_update_screen(struct x
                info->x2 = info->y2 = 0;
        } else {
                spin_unlock_irqrestore(&info->dirty_lock, flags);
+               mutex_unlock(&info->mm_lock);
                return;
        }
        spin_unlock_irqrestore(&info->dirty_lock, flags);
 
-       mutex_lock(&info->mm_lock);
-       
        list_for_each_entry(map, &info->mappings, link) {
                if (!map->faults)
                        continue;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xenfb: Revert mm_lock changes. They're not needed., Xen patchbot-linux-2.6.18-xen <=