Re: [PATCH V2 9/9] vhost: do not return -EAGIAN for non blocking invalidation too early

2019-07-31 Thread Jason Wang
On 2019/7/31 下午5:59, Stefano Garzarella wrote: A little typo in the title: s/EAGIAN/EAGAIN Thanks, Stefano Right, will fix if need respin or Michael can help to fix. Thanks On Wed, Jul 31, 2019 at 04:46:55AM -0400, Jason Wang wrote: Instead of returning -EAGAIN unconditionally, we'd

Re: [PATCH V2 9/9] vhost: do not return -EAGIAN for non blocking invalidation too early

2019-07-31 Thread Stefano Garzarella
A little typo in the title: s/EAGIAN/EAGAIN Thanks, Stefano On Wed, Jul 31, 2019 at 04:46:55AM -0400, Jason Wang wrote: > Instead of returning -EAGAIN unconditionally, we'd better do that only > we're sure the range is overlapped with the metadata area. > > Reported-by: Jason Gunthorpe >

[PATCH V2 9/9] vhost: do not return -EAGIAN for non blocking invalidation too early

2019-07-31 Thread Jason Wang
Instead of returning -EAGAIN unconditionally, we'd better do that only we're sure the range is overlapped with the metadata area. Reported-by: Jason Gunthorpe Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason Wang --- drivers/vhost/vhost.c |