|
@@ -924,7 +924,7 @@ int vhost_device_iotlb_miss(struct vhost_dev *dev, uint64_t iova, int write)
|
|
uint64_t uaddr, len;
|
|
uint64_t uaddr, len;
|
|
int ret = -EFAULT;
|
|
int ret = -EFAULT;
|
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
|
|
+ RCU_READ_LOCK_GUARD();
|
|
|
|
|
|
trace_vhost_iotlb_miss(dev, 1);
|
|
trace_vhost_iotlb_miss(dev, 1);
|
|
|
|
|
|
@@ -956,8 +956,6 @@ int vhost_device_iotlb_miss(struct vhost_dev *dev, uint64_t iova, int write)
|
|
trace_vhost_iotlb_miss(dev, 2);
|
|
trace_vhost_iotlb_miss(dev, 2);
|
|
|
|
|
|
out:
|
|
out:
|
|
- rcu_read_unlock();
|
|
|
|
-
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|