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

Re: [Xen-devel] Re: [PATCH 5/7 v2] xen-gntdev: Add reference counting to maps



> -static int gntdev_del_map(struct grant_map *map)
> +static void gntdev_put_map(struct grant_map *map)

Aha.. here it is.

.. snip ..
> @@ -606,6 +594,8 @@ static int gntdev_mmap(struct file *flip, struct 
> vm_area_struct *vma)
>               goto unlock_out;
>       }
>  
> +     atomic_inc(&map->users);
> +
>       vma->vm_ops = &gntdev_vmops;
>  
>       vma->vm_flags |= VM_RESERVED;
> @@ -614,6 +604,7 @@ static int gntdev_mmap(struct file *flip, struct 
> vm_area_struct *vma)
>       vma->vm_flags |= VM_PFNMAP;
>  
>       vma->vm_private_data = map;
> +

No need for that.

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


 


Rackspace

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