mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
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 3cc9db8626 due another deadlock there.
Fixes #23613
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
18 KiB
18 KiB