mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
955bd1d216
31 changed files with 274 additions and 123 deletions
|
|
@ -904,7 +904,7 @@ static void vhost_dev_lock_vqs(struct vhost_dev *d)
|
|||
{
|
||||
int i = 0;
|
||||
for (i = 0; i < d->nvqs; ++i)
|
||||
mutex_lock(&d->vqs[i]->mutex);
|
||||
mutex_lock_nested(&d->vqs[i]->mutex, i);
|
||||
}
|
||||
|
||||
static void vhost_dev_unlock_vqs(struct vhost_dev *d)
|
||||
|
|
@ -1015,6 +1015,10 @@ static int vhost_process_iotlb_msg(struct vhost_dev *dev,
|
|||
vhost_iotlb_notify_vq(dev, msg);
|
||||
break;
|
||||
case VHOST_IOTLB_INVALIDATE:
|
||||
if (!dev->iotlb) {
|
||||
ret = -EFAULT;
|
||||
break;
|
||||
}
|
||||
vhost_vq_meta_reset(dev);
|
||||
vhost_del_umem_range(dev->iotlb, msg->iova,
|
||||
msg->iova + msg->size - 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue