projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73552e0
)
drm/i915: Use might_alloc()
author
Bernard Zhao
<bernard@vivo.com>
Thu, 29 Apr 2021 02:13:27 +0000
(19:13 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 30 Apr 2021 16:43:57 +0000
(18:43 +0200)
This maybe uses lockdep through the fs_reclaim annotations.
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210429021327.57944-1-bernard@vivo.com
drivers/gpu/drm/i915/i915_request.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_request.c
b/drivers/gpu/drm/i915/i915_request.c
index bec9c3652188b47dd5ee0c7969ee87c49f29965c..970d8f4986bbefa62127db7edbaffd601755ae6b 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_request.c
+++ b/
drivers/gpu/drm/i915/i915_request.c
@@
-929,7
+929,7
@@
__i915_request_create(struct intel_context *ce, gfp_t gfp)
u32 seqno;
int ret;
- might_
sleep_if(gfpflags_allow_blocking(gfp)
);
+ might_
alloc(gfp
);
/* Check that the caller provided an already pinned context */
__intel_context_pin(ce);