From: jsg Date: Thu, 14 Apr 2022 08:38:48 +0000 (+0000) Subject: drm/amdkfd: Don't take process mutex for svm ioctls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6b0be0d3d85d7011dcbc447755cd4cf1b87964ca;p=openbsd drm/amdkfd: Don't take process mutex for svm ioctls From Philip Yang e84b0438010d3359ae4830ba44108150f4839a92 in linux 5.15.y/5.15.34 ac7c48c0cce00d03b3c95fddcccb0a45257e33e3 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c b/sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c index 444ad4ebcaf..f800dbfc048 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c @@ -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