]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: don't hold onto file pointer for VHOST_SET_LOG_FD
authorEric Biggers <ebiggers@google.com>
Sat, 6 Jan 2018 22:52:21 +0000 (14:52 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Feb 2018 14:26:47 +0000 (16:26 +0200)
commita62c0e4d4c6db6b2a37efaa7905a5cbc6fa3d41c
tree92029ddc6e84b3ff4e2e2d0c66a77067e2d1fba4
parent9c3d034a313bb0bc7bdfe6d4ec9509f1c5d963bb
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>
drivers/vhost/vhost.c
drivers/vhost/vhost.h