diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2014-12-03 10:19:36 -0500 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2014-12-03 10:19:36 -0500 |
commit | c448a142a714b4ad25ebd4c872b7c9752e428c88 (patch) | |
tree | 9dff3d3d4bd3631f959bae170d7d91222d29eb58 /drivers/gpu | |
parent | aeda036c371c58d3a6dcb3e5ac3c1503e7ffc4cf (diff) |
amdkfd: use atomic allocations within srcu callbacks
srcu callbacks are running in atomic context, we can't allocate using
__GFP_WAIT.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index b4f49ac1333..b85eb0b830b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -196,7 +196,7 @@ static void kfd_process_destroy_delayed(struct rcu_head *rcu) mmdrop(p->mm); 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) { INIT_WORK((struct work_struct *) work, kfd_process_wq_release); |