Commit 0333ec88 authored by Bernard Zhao's avatar Bernard Zhao Committed by Daniel Vetter

drm/i915: Use might_alloc()

This maybe uses lockdep through the fs_reclaim annotations.
Signed-off-by: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210429021327.57944-1-bernard@vivo.com
parent 73552e00
...@@ -929,7 +929,7 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp) ...@@ -929,7 +929,7 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp)
u32 seqno; u32 seqno;
int ret; int ret;
might_sleep_if(gfpflags_allow_blocking(gfp)); might_alloc(gfp);
/* Check that the caller provided an already pinned context */ /* Check that the caller provided an already pinned context */
__intel_context_pin(ce); __intel_context_pin(ce);
......
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