vhost: don't hold onto file pointer for VHOST_SET_VRING_CALL
authorEric Biggers <ebiggers@google.com>
Sat, 6 Jan 2018 22:52:19 +0000 (14:52 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Feb 2018 14:26:46 +0000 (16:26 +0200)
commite050c7d93f4adb2a651711e2d4e0a86d41b9d76f
tree9e9e3387eadf9365189c35bdeec2b653419d2440
parent03ee47ae8a7c608975be7e45287bff0482e295d6
vhost: don't hold onto file pointer for VHOST_SET_VRING_CALL

We already hold a reference to the eventfd_ctx, which is sufficient;
there's no need to hold a reference to the struct file as well.  So get
rid of vhost_virtqueue->call.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/vhost.c
drivers/vhost/vhost.h