[Virtio-fs] [PATCH 1/9] virtio-fs: fix multiple tag support

Vivek Goyal vgoyal at redhat.com
Tue Apr 16 18:09:08 UTC 2019


On Wed, Apr 17, 2019 at 02:03:14AM +0800, Liu Bo wrote:
> While doing memremap from pci_dev's system bus address to kernel virtual
> address, we assign a wrong value to the %end of pgmap.res, which ends up
> with a wrong resource size in the process of memremap, and that further
> prevent the second virtiofs pci device from being probed successfully.
> 
> Signed-off-by: Liu Bo <bo.liu at linux.alibaba.com>

Thanks. Already included in my internal branch.

Thanks
Vivek

> ---
>  fs/fuse/virtio_fs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c
> index d669512..68fd11b 100644
> --- a/fs/fuse/virtio_fs.c
> +++ b/fs/fuse/virtio_fs.c
> @@ -589,7 +589,7 @@ static int virtio_fs_setup_dax(struct virtio_device *vdev, struct virtio_fs *fs)
>  	pgmap->res = (struct resource){
>  		.name = "virtio-fs dax window",
>  		.start = (phys_addr_t) cache_reg.addr,
> -		.end = (phys_addr_t) cache_reg.addr + cache_reg.len,
> +		.end = (phys_addr_t) cache_reg.addr + cache_reg.len - 1,
>  	};
>  
>  	fs->window_kaddr = devm_memremap_pages(&vdev->dev, pgmap);
> -- 
> 1.8.3.1
> 
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs at redhat.com
> https://www.redhat.com/mailman/listinfo/virtio-fs




More information about the Virtio-fs mailing list