summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2022-01-09 12:02:51 +0300
committerDominik Brodowski <linux@dominikbrodowski.net>2022-01-09 23:30:04 +0300
commitfbb3485f1f931102d8ba606f1c28123f5b48afa3 (patch)
treefae441b936ab4b1a7bffe1786540e2d80463c279 /drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c
parent05159e32aa3f7de2bf3f9a5429921d50bf545ced (diff)
downloadlinux-fbb3485f1f931102d8ba606f1c28123f5b48afa3.tar.xz
pcmcia: fix setting of kthread task states
We need to set TASK_INTERRUPTIBLE before calling kthread_should_stop(). Otherwise, kthread_stop() might see that the pccardd thread is still in TASK_RUNNING state and fail to wake it up. Additionally, we only need to set the state back to TASK_RUNNING if kthread_should_stop() breaks the loop. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Fixes: d3046ba809ce ("pcmcia: fix a boot time warning in pcmcia cs code") Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c')
0 files changed, 0 insertions, 0 deletions