diff options
author | Eric Biggers <ebiggers@google.com> | 2018-01-06 14:52:21 -0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-02-01 16:26:47 +0200 |
commit | d25cc43c6775bff6b8e3dad97c747954b805e421 (patch) | |
tree | 92029ddc6e84b3ff4e2e2d0c66a77067e2d1fba4 /drivers/vhost/vhost.h | |
parent | 09f332a589232f524b579ba4319433dcc7c0ed32 (diff) | |
download | op-kernel-dev-d25cc43c6775bff6b8e3dad97c747954b805e421.zip op-kernel-dev-d25cc43c6775bff6b8e3dad97c747954b805e421.tar.gz |
vhost: don't hold onto file pointer for VHOST_SET_LOG_FD
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_dev->log_file.
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.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index e3c463c..45d12b0 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -157,7 +157,6 @@ struct vhost_dev { struct mutex mutex; struct vhost_virtqueue **vqs; int nvqs; - struct file *log_file; struct eventfd_ctx *log_ctx; struct llist_head work_list; struct task_struct *worker; |