mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
amdkfd: process pointer of a HIQ should be NULL
In kq_initialize, queue->process of a HIQ should be NULL as initialized, because it does not belong to any kfd_process. This commit decommisions the function kfd_get_process() because it can not locate a specific kfd_process among multiple contexts and not any code path calls it after this commit. Signed-off-by: Zhu Lingshan <lingshan.zhu@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
018fd6d7d9
commit
d59e9d2d55
@@ -129,7 +129,6 @@ static bool kq_initialize(struct kernel_queue *kq, struct kfd_node *dev,
|
||||
goto err_init_queue;
|
||||
|
||||
kq->queue->device = dev;
|
||||
kq->queue->process = kfd_get_process(current);
|
||||
|
||||
kq->queue->mqd_mem_obj = kq->mqd_mgr->allocate_mqd(kq->mqd_mgr->dev,
|
||||
&kq->queue->properties);
|
||||
|
||||
Reference in New Issue
Block a user