Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Bernard Zhao and committed by
Daniel Vetter
0333ec88 73552e00

+1 -1
+1 -1
drivers/gpu/drm/i915/i915_request.c
··· 929 929 u32 seqno; 930 930 int ret; 931 931 932 - might_sleep_if(gfpflags_allow_blocking(gfp)); 932 + might_alloc(gfp); 933 933 934 934 /* Check that the caller provided an already pinned context */ 935 935 __intel_context_pin(ce);