Skip to content

Commit 0333ec8

Browse files
Bernard Zhaodanvet
authored andcommitted
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]
1 parent 73552e0 commit 0333ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_request.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp)
929929
u32 seqno;
930930
int ret;
931931

932-
might_sleep_if(gfpflags_allow_blocking(gfp));
932+
might_alloc(gfp);
933933

934934
/* Check that the caller provided an already pinned context */
935935
__intel_context_pin(ce);

0 commit comments

Comments
 (0)