summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-01-06 23:52:19 +0100
committerMichael S. Tsirkin <mst@redhat.com>2018-02-01 15:26:46 +0100
commite050c7d93f4adb2a651711e2d4e0a86d41b9d76f (patch)
tree9e9e3387eadf9365189c35bdeec2b653419d2440 /drivers/vhost/vhost.h
parentringtest: ring.c malloc & memset to calloc (diff)
downloadlinux-e050c7d93f4adb2a651711e2d4e0a86d41b9d76f.tar.xz
linux-e050c7d93f4adb2a651711e2d4e0a86d41b9d76f.zip
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>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r--drivers/vhost/vhost.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index d56b711577eb..0ba877e385ac 100644
--- a/drivers/vhost/vhost.h
+++ b/drivers/vhost/vhost.h
@@ -92,7 +92,6 @@ struct vhost_virtqueue {
struct vring_used __user *used;
const struct vhost_umem_node *meta_iotlb[VHOST_NUM_ADDRS];
struct file *kick;
- struct file *call;
struct file *error;
struct eventfd_ctx *call_ctx;
struct eventfd_ctx *error_ctx;