vhost: remove unused lock check flag in vhost_dev_cleanup()
In commitea5d404655
("vhost: fix release path lockdep checks"), Michael added a flag to check whether we should hold a lock in vhost_dev_cleanup(), however, in commit47283bef7e
("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>
This commit is contained in:

committed by
Michael S. Tsirkin

parent
ac964d7a59
commit
f6f93f75af
@@ -996,7 +996,7 @@ static int vhost_net_release(struct inode *inode, struct file *f)
|
||||
vhost_net_stop(n, &tx_sock, &rx_sock);
|
||||
vhost_net_flush(n);
|
||||
vhost_dev_stop(&n->dev);
|
||||
vhost_dev_cleanup(&n->dev, false);
|
||||
vhost_dev_cleanup(&n->dev);
|
||||
vhost_net_vq_reset(n);
|
||||
if (tx_sock)
|
||||
sockfd_put(tx_sock);
|
||||
|
Reference in New Issue
Block a user