diff options
author | 夷则(Caspar) <jinli.zjl@alibaba-inc.com> | 2017-12-25 00:08:58 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-02-01 16:26:44 +0200 |
commit | f6f93f75afb65997f4a84aaaab59dd06a4a06c80 (patch) | |
tree | ff77df0fee712020bb80c417650389cf4f037a6e /drivers/vhost/vhost.c | |
parent | ac964d7a594290e230f8c1038934692e30c76fc8 (diff) | |
download | linux-f6f93f75afb65997f4a84aaaab59dd06a4a06c80.tar.gz linux-f6f93f75afb65997f4a84aaaab59dd06a4a06c80.tar.bz2 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/vhost.c')
-rw-r--r-- | drivers/vhost/vhost.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 67fa3d153072..e5eba5acfd55 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -543,7 +543,7 @@ void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_umem *umem) { int i; - vhost_dev_cleanup(dev, true); + vhost_dev_cleanup(dev); /* Restore memory to default empty mapping. */ INIT_LIST_HEAD(&umem->umem_list); @@ -610,8 +610,7 @@ static void vhost_clear_msg(struct vhost_dev *dev) spin_unlock(&dev->iotlb_lock); } -/* Caller should have device mutex if and only if locked is set */ -void vhost_dev_cleanup(struct vhost_dev *dev, bool locked) +void vhost_dev_cleanup(struct vhost_dev *dev) { int i; |