mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-22 23:45:40 -04:00
An atomic counter is not sufficient, as one task could still be in the process of tearing things down while another task increments the counter back up to one and begins setup again. The race condition existed since commitb145c6e65e("drm/msm: Add support to create a local pagetable") but got bigger in commitdbbde63c9e("drm/msm: Add PRR support"). Fixes:dbbde63c9e("drm/msm: Add PRR support") Fixes:b145c6e65e("drm/msm: Add support to create a local pagetable") Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/664433/