Matt Heon
0ccb836156
Fix a potential deadlock during podman cp
...
Have one function without a `defer lock.unlock()` as one of the
commands in it calls a function that also takes the same lock,
so the unlock has to happen prior to function completion.
Unfortunately, this is prone to errors, like the one here: I
missed a case, and we could return without unlocking, causing a
deadlock later in the cleanup code as we tried to take the same
lock again.
Refactor the command to use `defer unlock()` to simplify and
avoid any further errors of this type.
Introduced by e66b788a514fb8df2c8b8d3c000e0d543bbd60df - this
should be included in any backports of that commit.
Fixes #25585
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-04-02 09:38:19 -04:00
..
2025-04-01 11:32:34 +02:00
2024-02-08 09:35:39 -05:00
2025-01-07 15:48:53 +01:00
2017-11-01 11:24:59 -04:00
2024-01-04 11:53:38 +02:00
2024-08-12 11:38:02 -04:00
2024-09-03 15:14:15 +02:00
2024-04-19 09:52:14 +02:00
2024-11-27 08:09:50 -05:00
2024-07-11 09:39:56 -04:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2025-03-10 13:14:10 -04:00
2024-11-28 14:01:45 +03:00
2025-03-17 15:10:59 +00:00
2025-04-02 09:38:19 -04:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2025-02-03 01:50:55 +00:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-09-02 11:21:35 +01:00
2024-10-01 12:52:18 -07:00
2025-03-17 15:10:59 +00:00
2025-04-02 09:38:19 -04:00
2025-01-15 06:51:32 -05:00
2024-01-04 11:53:38 +02:00
2025-01-15 06:51:32 -05:00
2025-01-15 07:08:27 -05:00
2025-03-17 15:10:59 +00:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-11-01 18:53:08 +01:00
2024-01-04 11:53:38 +02:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-06-27 10:50:17 +02:00
2024-08-19 11:41:28 +02:00
2024-01-04 11:53:38 +02:00
2024-10-01 07:54:52 -04:00
2025-03-17 15:10:59 +00:00
2024-02-08 09:35:39 -05:00
2022-03-23 19:05:29 +01:00
2025-03-17 15:10:59 +00:00
2024-11-19 19:44:14 +01:00
2024-10-25 15:27:05 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2025-03-17 15:10:59 +00:00
2024-02-08 09:35:39 -05:00
2024-04-10 11:55:35 +02:00
2024-02-08 09:35:39 -05:00
2024-12-03 14:15:08 +00:00
2024-12-18 09:07:57 -05:00
2024-01-04 11:53:38 +02:00
2025-01-20 15:55:26 +01:00
2024-03-19 12:09:31 +01:00
2024-09-03 15:14:15 +02:00
2024-09-20 15:19:22 +02:00
2024-01-04 11:53:38 +02:00
2024-10-30 13:35:56 +01:00
2024-02-08 09:35:39 -05:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-02-11 21:10:25 +00:00
2024-02-12 09:13:39 -05:00
2024-02-02 11:02:43 -05:00
2024-02-02 11:02:43 -05:00
2024-06-21 18:01:26 +02:00
2025-04-01 11:39:12 +02:00
2024-01-04 11:53:38 +02:00
2025-02-11 21:10:25 +00:00
2025-04-01 11:32:49 +02:00
2025-02-11 21:10:25 +00:00
2025-03-17 15:10:59 +00:00
2025-01-15 06:51:32 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 10:30:42 +02:00
2024-05-29 11:10:55 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-09-27 15:15:23 +02:00
2024-04-05 10:07:42 -04:00
2024-11-18 12:41:47 +01:00
2024-04-05 10:07:42 -04:00
2024-02-08 09:35:39 -05:00
2024-01-12 09:19:34 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-23 11:16:40 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2025-03-10 14:18:41 +00:00
2024-08-15 11:07:27 +02:00
2024-07-09 11:15:29 +02:00
2025-01-27 14:21:27 +01:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2025-02-11 11:01:00 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-13 15:20:19 +08:00
2024-10-29 11:16:57 +01:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-09-04 05:30:35 +00:00
2025-02-03 01:50:55 +00:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2024-05-22 17:47:01 -04:00