]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_vsock: simplify vhost_vsock_flush()
authorAndrey Ryabinin <arbn@yandex-team.com>
Tue, 17 May 2022 18:08:47 +0000 (13:08 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:45:10 +0000 (12:45 -0400)
commitbef1c1d3dc4a79c342ebed8ecb32fe893d502afb
tree2b0a5efd9fc85a50ccb869d978201a7897c99383
parent114cda044a3559f57b5c84a8a25183123103b5e1
vhost_vsock: simplify vhost_vsock_flush()

vhost_vsock_flush() calls vhost_work_dev_flush(vsock->vqs[i].poll.dev)
before vhost_work_dev_flush(&vsock->dev). This seems pointless
as vsock->vqs[i].poll.dev is the same as &vsock->dev and several flushes
in a row doesn't do anything useful, one is just enough.

Signed-off-by: Andrey Ryabinin <arbn@yandex-team.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220517180850.198915-6-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vsock.c