projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeda036
)
amdkfd: use atomic allocations within srcu callbacks
author
Sasha Levin
<sasha.levin@oracle.com>
Wed, 3 Dec 2014 15:19:36 +0000
(10:19 -0500)
committer
Oded Gabbay
<oded.gabbay@amd.com>
Wed, 3 Dec 2014 15:19:36 +0000
(10:19 -0500)
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>
drivers/gpu/drm/amd/amdkfd/kfd_process.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index b4f49ac13334249d2c7ac370249d8db91858a386..b85eb0b830b41d5d894efebb2a3e6fab83ca7552 100644
(file)
--- 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);