aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Zhao <[email protected]>2021-04-28 19:13:27 -0700
committerDaniel Vetter <[email protected]>2021-04-30 18:43:57 +0200
commit0333ec8806dfe7b8766ad025821bf58dc49dc970 (patch)
treee3645e08b4742f40f170084eb0c8e06dacb65e63
parent73552e008a853f38f02bfb151ae7f8298debe5f8 (diff)
drm/i915: Use might_alloc()
This maybe uses lockdep through the fs_reclaim annotations. Signed-off-by: Bernard Zhao <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/i915/i915_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index bec9c3652188..970d8f4986bb 100644
--- 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);