lkml.org 
[lkml]   [2020]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/6] fixup! vhost: batching fetches
    Date
    Old code did not take into account the _SET_BASE ioctl.

    Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
    ---
    drivers/vhost/vhost.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
    index 5f84f29b6c47..1646b1ce312a 100644
    --- a/drivers/vhost/vhost.c
    +++ b/drivers/vhost/vhost.c
    @@ -1652,6 +1652,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *arg
    vq->last_avail_idx = s.num;
    /* Forget the cached index value. */
    vq->avail_idx = vq->last_avail_idx;
    + vq->ndescs = vq->first_desc = 0;
    break;
    case VHOST_GET_VRING_BASE:
    s.index = idx;
    --
    2.18.1
    \
     
     \ /
      Last update: 2020-03-29 13:35    [W:2.824 / U:0.828 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site