Commit c448a142 authored by Sasha Levin's avatar Sasha Levin Committed by Oded Gabbay

amdkfd: use atomic allocations within srcu callbacks

srcu callbacks are running in atomic context, we can't allocate using
__GFP_WAIT.
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
parent aeda036c
...@@ -196,7 +196,7 @@ static void kfd_process_destroy_delayed(struct rcu_head *rcu) ...@@ -196,7 +196,7 @@ static void kfd_process_destroy_delayed(struct rcu_head *rcu)
mmdrop(p->mm); mmdrop(p->mm);
work = (struct kfd_process_release_work *) work = (struct kfd_process_release_work *)
kmalloc(sizeof(struct kfd_process_release_work), GFP_KERNEL); kmalloc(sizeof(struct kfd_process_release_work), GFP_ATOMIC);
if (work) { if (work) {
INIT_WORK((struct work_struct *) work, kfd_process_wq_release); INIT_WORK((struct work_struct *) work, kfd_process_wq_release);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment