diff options
author | Bernard Zhao <bernard@vivo.com> | 2021-04-29 05:13:27 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2021-04-30 19:43:57 +0300 |
commit | 0333ec8806dfe7b8766ad025821bf58dc49dc970 (patch) | |
tree | e3645e08b4742f40f170084eb0c8e06dacb65e63 | |
parent | 73552e008a853f38f02bfb151ae7f8298debe5f8 (diff) | |
download | linux-0333ec8806dfe7b8766ad025821bf58dc49dc970.tar.xz |
drm/i915: Use might_alloc()
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
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 2 |
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); |