diff options
author | Philip Yang <Philip.Yang@amd.com> | 2025-09-15 15:57:32 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-10-07 14:09:06 -0400 |
commit | 7574f30337e19045f03126b4c51f525b84e5049e (patch) | |
tree | 0eda9131a962658f06d5e69a78886ae644770b00 /include/linux/overflow.h | |
parent | 58e6fc2fb94f0f409447e5d46cf6a417b6397fbc (diff) |
drm/amdkfd: Fix mmap write lock not release
If mmap write lock is taken while draining retry fault, mmap write lock
is not released because svm_range_restore_pages calls mmap_read_unlock
then returns. This causes deadlock and system hangs later because mmap
read or write lock cannot be taken.
Downgrade mmap write lock to read lock if draining retry fault fix this
bug.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions