]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix task dump in gpu recovery
authorSharat Masetty <smasetty@codeaurora.org>
Fri, 12 Oct 2018 08:56:56 +0000 (14:26 +0530)
committerSean Paul <seanpaul@chromium.org>
Fri, 30 Nov 2018 16:34:23 +0000 (11:34 -0500)
commit46027e7aff10ae165627179255b11378312a6f1e
treeef9ff92d1673ab7cd231c11aa0c702336b62b579
parent74b4936d8b45d10b8f88304a04a1fde8956b75b4
drm/msm: Fix task dump in gpu recovery

The current recovery code gets a pointer to the task struct and does a
few things all within the rcu_read_lock. This puts constraints on the
types of gfp flags that can be used within the rcu lock. This patch
instead gets a reference to the task within the rcu lock and releases
the lock immediately, this way the task stays afloat until we need it and
we also get to use the desired gfp flags.

Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/msm/msm_gpu.c