Re: [PATCH 5/8] test-bdrv-drain: Take graph lock more selectively

2023-05-12 Thread Eric Blake
On Wed, May 10, 2023 at 10:35:58PM +0200, Kevin Wolf wrote: > > If we take a reader lock, we can't call any functions that take a writer > lock internally without causing deadlocks once the reader lock is > actually enforced in the main thread, too. Take the reader lock only > where it is actual

[PATCH 5/8] test-bdrv-drain: Take graph lock more selectively

2023-05-10 Thread Kevin Wolf
If we take a reader lock, we can't call any functions that take a writer lock internally without causing deadlocks once the reader lock is actually enforced in the main thread, too. Take the reader lock only where it is actually needed. Signed-off-by: Kevin Wolf --- tests/unit/test-bdrv-drain.c