drm/msm: Fix task dump in gpu recovery
authorSharat Masetty <smasetty@codeaurora.org>
Fri, 12 Oct 2018 08:56:56 +0000 (14:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:15:14 +0000 (14:15 +0100)
commit35516413ae5a3b3b133e34d072c2608706b5b585
tree3abaa775e871d6c0e038f630ce60cac886e500d1
parent985dea32ba5745bdf41aa2edd7cf86470ca8901b
drm/msm: Fix task dump in gpu recovery

[ Upstream commit 482f96324a4e08818db7d75bb12beaaea6c9561d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_gpu.c