diff options
author | 夷则(Caspar) <jinli.zjl@alibaba-inc.com> | 2017-12-24 17:08:58 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-02-01 15:26:44 +0100 |
commit | f6f93f75afb65997f4a84aaaab59dd06a4a06c80 (patch) | |
tree | ff77df0fee712020bb80c417650389cf4f037a6e /drivers/vhost/vsock.c | |
parent | vhost: Remove the unused variable. (diff) | |
download | linux-f6f93f75afb65997f4a84aaaab59dd06a4a06c80.tar.xz linux-f6f93f75afb65997f4a84aaaab59dd06a4a06c80.zip |
vhost: remove unused lock check flag in vhost_dev_cleanup()
In commit ea5d404655ba ("vhost: fix release path lockdep checks"),
Michael added a flag to check whether we should hold a lock in
vhost_dev_cleanup(), however, in commit 47283bef7ed3 ("vhost: move
memory pointer to VQs"), RCU operations have been replaced by
mutex, we can remove the no-longer-used `locked' parameter now.
Signed-off-by: Caspar Zhang <jinli.zjl@alibaba-inc.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vsock.c')
-rw-r--r-- | drivers/vhost/vsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index 5a5e981bd8e4..0d14e2ff19f1 100644 --- a/drivers/vhost/vsock.c +++ b/drivers/vhost/vsock.c @@ -599,7 +599,7 @@ static int vhost_vsock_dev_release(struct inode *inode, struct file *file) } spin_unlock_bh(&vsock->send_pkt_list_lock); - vhost_dev_cleanup(&vsock->dev, false); + vhost_dev_cleanup(&vsock->dev); kfree(vsock->dev.vqs); vhost_vsock_free(vsock); return 0; |