Fiona Ebner
ffdcd081f5
block: move drain outside of bdrv_root_attach_child()
...
This is part of resolving the deadlock mentioned in commit "block:
move draining out of bdrv_change_aio_context() and mark GRAPH_RDLOCK".
The function bdrv_root_attach_child() runs under the graph lock, so it
is not allowed to drain. It is called by:
1. blk_insert_bs(), where a drained section is introduced.
2. block_job_add_bdrv(), which holds the graph lock itself.
block_job_add_bdrv() is called by:
1. mirror_start_job()
2. stream_start()
3. commit_start()
4. backup_job_create()
5. block_job_create()
6. In the test_blockjob_common_drain_node() unit test
In all callers, a drained section is introduced.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com >
Reviewed-by: Kevin Wolf <kwolf@redhat.com >
Message-ID: <20250530151125.955508-13-f.ebner@proxmox.com >
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
2025-06-04 18:16:34 +02:00
..
2025-02-06 14:46:40 +01:00
2025-02-11 13:45:47 -06:00
2024-12-20 17:44:56 +01:00
2024-09-30 10:53:18 +03:00
2023-05-10 14:16:54 +02:00
2025-06-04 18:16:34 +02:00
2025-05-14 15:33:34 -05:00
2025-04-23 14:08:21 -07:00
2025-02-10 15:33:16 +01:00
2024-12-20 17:44:56 +01:00
2025-02-10 15:33:16 +01:00
2025-06-04 18:16:34 +02:00
2024-12-20 17:44:56 +01:00
2022-12-15 16:07:43 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2023-11-08 17:56:18 +01:00
2025-06-04 18:16:34 +02:00
2025-05-14 15:33:34 -05:00
2025-05-12 18:19:31 +03:00
2025-02-10 15:33:16 +01:00
2023-11-07 19:14:19 +01:00
2025-05-14 15:33:34 -05:00
2025-03-06 14:21:25 +01:00
2024-12-20 17:44:56 +01:00
2024-02-09 12:50:37 +00:00
2025-02-10 15:33:16 +01:00
2023-02-23 19:49:32 +01:00
2023-03-30 15:03:36 +02:00
2023-11-08 17:56:18 +01:00
2023-04-24 13:53:44 -04:00
2025-05-22 17:56:50 +02:00
2025-02-10 15:33:16 +01:00
2023-11-08 17:56:18 +01:00
2025-05-14 15:49:27 -05:00
2023-12-21 22:49:27 +01:00
2025-03-13 17:44:55 +01:00
2025-05-14 16:08:23 -05:00
2021-07-09 18:20:27 +02:00
2025-05-14 15:33:34 -05:00
2025-03-13 17:44:55 +01:00
2024-12-20 17:44:56 +01:00
2025-06-04 18:16:34 +02:00
2025-05-14 15:33:34 -05:00
2025-02-10 15:33:16 +01:00
2025-05-14 15:33:34 -05:00
2025-05-08 10:21:10 -04:00
2024-09-10 14:02:16 +02:00
2025-05-14 15:33:34 -05:00
2023-11-08 17:56:18 +01:00
2023-11-08 17:56:18 +01:00
2023-01-19 10:18:28 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 13:25:36 -05:00
2024-05-08 19:11:34 +02:00
2023-10-12 16:31:33 +02:00
2023-11-08 17:56:17 +01:00
2023-10-12 16:31:33 +02:00
2024-12-20 17:44:56 +01:00
2023-04-25 13:17:28 +02:00
2025-05-14 15:33:34 -05:00
2023-11-08 17:56:17 +01:00
2025-05-14 15:33:34 -05:00
2023-06-28 09:46:20 +02:00
2022-03-07 13:16:49 +00:00
2023-06-28 09:46:34 +02:00
2025-05-14 15:33:34 -05:00
2023-11-08 17:56:18 +01:00
2025-05-14 15:33:34 -05:00
2025-05-14 15:33:34 -05:00
2025-05-14 15:33:34 -05:00
2025-05-12 18:19:31 +03:00
2024-09-30 10:53:18 +03:00
2025-05-14 15:33:34 -05:00
2025-06-04 18:16:33 +02:00
2025-02-10 15:33:16 +01:00
2025-06-04 18:16:34 +02:00
2025-04-25 17:00:41 +02:00
2023-11-08 17:56:18 +01:00
2023-10-05 11:02:08 -05:00
2020-08-21 06:18:24 -04:00
2025-05-14 15:33:34 -05:00
2023-11-08 17:56:18 +01:00
2025-02-10 15:33:16 +01:00
2023-11-08 17:56:18 +01:00
2025-05-14 15:33:34 -05:00
2025-05-14 15:33:34 -05:00
2025-05-14 15:33:34 -05:00
2023-05-30 17:37:26 +02:00
2023-12-21 22:49:27 +01:00