[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] blktap: Indirection in vm_area_struct->vm_private_data



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245146979 -3600
# Node ID 9242c5b965c181a4eb095570c51b1cc05bd58a33
# Parent  046a6eabd4dc70db61d26321d45155ca6e8bddfd
blktap: Indirection in vm_area_struct->vm_private_data

The recent patch in linux-2.6.18.hg (878: eba6fe6d8d53) changed the
way that the foreign map is stored in vm_area_struct. Currently blktap
(not 2) implementation is internally inconsistent, which triggers
kernel bug when tap:aio disk is used (dump attached at the end of the
email).

Signed-off-by: Grzegorz Milos <gm281@xxxxxxxxx>
---
 drivers/xen/blktap/blktap.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 046a6eabd4dc -r 9242c5b965c1 drivers/xen/blktap/blktap.c
--- a/drivers/xen/blktap/blktap.c       Tue Jun 16 11:07:19 2009 +0100
+++ b/drivers/xen/blktap/blktap.c       Tue Jun 16 11:09:39 2009 +0100
@@ -733,7 +733,7 @@ static int blktap_mmap(struct file *filp
                goto fail;
        }
 
-       vma->vm_private_data = info->foreign_map.map;
+       vma->vm_private_data = &info->foreign_map;
        vma->vm_flags |= VM_FOREIGN;
        vma->vm_flags |= VM_DONTCOPY;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.