Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
podman volume rm --force: fix ABBA deadlock
We cannot get first the volume lock and the container locks. Other code paths always have to first lock the container and the lock the volumes, i.e. to mount/umount them. As such locking the volume fust can always result in ABBA deadlocks. To fix this move the lock down after the container removal. The removal code is racy regardless of the lock as the volume lcok on create is no longer taken since commit 3cc9db8 due another deadlock there. Fixes #23613 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
- Loading branch information