|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch] fix xenfb_update_screen bogus rect
Hi, Markus Markus Armbruster wrote: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> writes:Hi, Markus Markus Armbruster wrote:Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> writes:[...]diff -r 83b71f4b5cb2 drivers/xen/fbfront/xenfb.c --- a/drivers/xen/fbfront/xenfb.c Tue Jan 20 13:28:35 2009 +0000 +++ b/drivers/xen/fbfront/xenfb.c Thu Jan 29 01:24:06 2009 +0900 @@ -213,17 +213,23 @@Please use -p with diff. I agree with you. I revert the mm_lock changing. In my graphic test, I didn't get any problem with this patch. Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> Best Regards, Akio Takebe diff -r f90f02049d7e drivers/xen/fbfront/xenfb.c
--- a/drivers/xen/fbfront/xenfb.c Thu Jan 29 18:26:47 2009 +0900
+++ b/drivers/xen/fbfront/xenfb.c Fri Jan 30 10:54:07 2009 +0900
@@ -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-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |