[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xenfb: Revert mm_lock changes. They're not needed.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |