drm-amd-kill-the-outdated-only-the-pthreads-threading-model-is-supported-checks.patch removed from -mm tree
The quilt patch titled
Subject: drm/amd: kill the outdated "Only the pthreads threading model is supported" checks
has been removed from the -mm tree. Its filename was
drm-amd-kill-the-outdated-only-the-pthreads-threading-model-is-supported-checks.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Oleg Nesterov <[email protected]>
Subject: drm/amd: kill the outdated "Only the pthreads threading model is supported" checks
Date: Sun, 25 Jan 2026 17:07:36 +0100
Nowadays task->group_leader->mm != task->mm is only possible if a) task is not a group leader and b) task->group_leader->mm == NULL because task->group_leader has already exited using sys_exit().
I don't think that drm/amd tries to detect/nack this case.
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 10 ---------- 2 files changed, 13 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c renamed from drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c~drm-amd-kill-the-outdated-only-the-pthreads-threading-model-is-supported-checks +0 -3
@@ -2551,9 +2551,6 @@ void amdgpu_vm_set_task_info(struct amdg vm->task_info->task.pid = current->pid;get_task_comm (vm->task_info->task.comm, current); -if (current->group_leader->mm != current->mm) -return ; - vm->task_info->tgid = current->tgid;get_task_comm (vm->task_info->process_name, current->group_leader); }
drivers/gpu/drm/amd/amdkfd/kfd_process.c renamed from drivers/gpu/drm/amd/amdkfd/kfd_process.c~drm-amd-kill-the-outdated-only-the-pthreads-threading-model-is-supported-checks +0 -10
@@ -833,12 +833,6 @@ struct kfd_process *kfd_create_process(sif (!(thread->mm &&mmget_not_zero (thread->mm)))return ERR_PTR (-EINVAL ); -/* Only the pthreads threading model is supported. */ -if (thread->group_leader->mm != thread->mm) { -mmput (thread->mm); -return ERR_PTR (-EINVAL ); - } -/* If the process just called exec(3), it is possible that the * cleanup of the kfd_process (following the release of the mm * of the old process image) is still in the cleanup work queue.
@@ -918,10 +912,6 @@ struct kfd_process *kfd_get_process(consif (!thread->mm)return ERR_PTR (-EINVAL ); -/* Only the pthreads threading model is supported. */ -if (thread->group_leader->mm != thread->mm) -return ERR_PTR (-EINVAL ); - process =find_process (thread, false);if (!process)return ERR_PTR (-EINVAL );
_
Patches currently in -mm which might be from [email protected] are