ia64/linux-2.6.18-xen.hg

changeset 901:9242c5b965c1

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@cam.ac.uk>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:09:39 2009 +0100 (2009-06-16)
parents 046a6eabd4dc
children 75e5bfa7fbdc
files drivers/xen/blktap/blktap.c
line diff
     1.1 --- a/drivers/xen/blktap/blktap.c	Tue Jun 16 11:07:19 2009 +0100
     1.2 +++ b/drivers/xen/blktap/blktap.c	Tue Jun 16 11:09:39 2009 +0100
     1.3 @@ -733,7 +733,7 @@ static int blktap_mmap(struct file *filp
     1.4  		goto fail;
     1.5  	}
     1.6  
     1.7 -	vma->vm_private_data = info->foreign_map.map;
     1.8 +	vma->vm_private_data = &info->foreign_map;
     1.9  	vma->vm_flags |= VM_FOREIGN;
    1.10  	vma->vm_flags |= VM_DONTCOPY;
    1.11