Re: [PATCH 05/24] block: Mark block_job_add_bdrv() GRAPH_WRLOCK

2023-10-27 Thread Eric Blake
On Fri, Oct 27, 2023 at 05:53:14PM +0200, Kevin Wolf wrote: > Instead of taking the writer lock internally, require callers to already > hold it when calling block_job_add_bdrv(). These callers will typically > already hold the graph lock once the locking work is completed, which > means that they

[PATCH 05/24] block: Mark block_job_add_bdrv() GRAPH_WRLOCK

2023-10-27 Thread Kevin Wolf
Instead of taking the writer lock internally, require callers to already hold it when calling block_job_add_bdrv(). These callers will typically already hold the graph lock once the locking work is completed, which means that they can't call functions that take it internally. Signed-off-by: Kevin