drm/msm/gpu: Remove mutex from wait_event condition
authorRob Clark <robdclark@chromium.org>
Thu, 10 Mar 2022 23:46:06 +0000 (15:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:41:06 +0000 (14:41 +0200)
commitad65964595fa83c40b9a25b6b8ff43f54d4760df
tree34cdb888ae6464cfda8822788c51bee8c8d1e080
parent56ba0f22914090d073f34642af192bbbddf69cc1
drm/msm/gpu: Remove mutex from wait_event condition

[ Upstream commit 7242795d520d3fb48e005e3c96ba54bb59639d6e ]

The mutex wasn't really protecting anything before.  Before the previous
patch we could still be racing with the scheduler's kthread, as that is
not necessarily frozen yet.  Now that we've parked the sched threads,
the only race is with jobs retiring, and that is harmless, ie.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220310234611.424743-4-robdclark@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/adreno/adreno_device.c