Skip to content

Commit

Permalink
drm/i915: Use might_alloc()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bernard Zhao authored and Daniel Vetter committed Apr 30, 2021
1 parent 73552e0 commit 0333ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0333ec8

Please sign in to comment.