drm/amdkfd: Don't take process mutex for svm ioctls
authorjsg <jsg@openbsd.org>
Thu, 14 Apr 2022 08:38:48 +0000 (08:38 +0000)
committerjsg <jsg@openbsd.org>
Thu, 14 Apr 2022 08:38:48 +0000 (08:38 +0000)
From Philip Yang
e84b0438010d3359ae4830ba44108150f4839a92 in linux 5.15.y/5.15.34
ac7c48c0cce00d03b3c95fddcccb0a45257e33e3 in mainline linux

sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c

index 444ad4e..f800dbf 100644 (file)
@@ -1807,13 +1807,9 @@ static int kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data)
        if (!args->start_addr || !args->size)
                return -EINVAL;
 
-       mutex_lock(&p->mutex);
-
        r = svm_ioctl(p, args->op, args->start_addr, args->size, args->nattr,
                      args->attrs);
 
-       mutex_unlock(&p->mutex);
-
        return r;
 }
 #else