Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc/pseries/vas: Hold mmap_mutex after mmap lock during window close
VAS mmap (coproc_mmap()) and its fault handler (vas_mmap_fault()) are called after holding mmap lock and acquire mmap_mutex to update VAS window status. The migration / DLPAR window close can hang while trying to acquire mmap lock if it is issued at the same time with the user space ioctl mmap or VAS fault handler execution. So this patch adds changes to acquire mmap lock before holding mmap_mutex. Fixes: 8ef7b9e ("powerpc/pseries/vas: Close windows with DLPAR core removal") Signed-off-by: Haren Myneni <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
- Loading branch information