projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ade6e9
)
habanalabs: use GFP_ATOMIC under spin lock
author
Wei Yongjun
<weiyongjun1@huawei.com>
Fri, 22 Feb 2019 05:46:01 +0000
(
05:46
+0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 22 Feb 2019 07:45:40 +0000
(08:45 +0100)
A spin lock is taken here so we should use GFP_ATOMIC.
Fixes: 0feaf86d4e69 ("habanalabs: add virtual memory and MMU modules")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/memory.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/memory.c
b/drivers/misc/habanalabs/memory.c
index 9236e52852c68ca4f8773dd4e2988185d0fce1d7..9e3491dc3b5529dc828e644592047ff0ce13a050 100644
(file)
--- a/
drivers/misc/habanalabs/memory.c
+++ b/
drivers/misc/habanalabs/memory.c
@@
-120,7
+120,7
@@
static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args,
spin_lock(&vm->idr_lock);
handle = idr_alloc(&vm->phys_pg_pack_handles, phys_pg_pack, 1, 0,
- GFP_
KERNEL
);
+ GFP_
ATOMIC
);
spin_unlock(&vm->idr_lock);
if (handle < 0) {