Re: [PATCH 8/8] graph-lock: Honour read locks even in the main thread

2023-05-12 Thread Eric Blake
On Wed, May 10, 2023 at 10:36:01PM +0200, Kevin Wolf wrote: > > There are some conditions under which we don't actually need to do > anything for taking a reader lock: Writing the graph is only possible > from the main context while holding the BQL. So if a reader is running > in the main contex

[PATCH 8/8] graph-lock: Honour read locks even in the main thread

2023-05-10 Thread Kevin Wolf
There are some conditions under which we don't actually need to do anything for taking a reader lock: Writing the graph is only possible from the main context while holding the BQL. So if a reader is running in the main context under the BQL and knows that it won't be interrupted until the next wri