[PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-06 Thread Kevin Wolf
External callers of blk_co_*() don't currently increase the BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there is an inconsistency whether the counter has been increased or not. This patch moves the actual operations to static functions that can later know they will always be

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-06 Thread Vladimir Sementsov-Ogievskiy
06.04.2020 20:14, Kevin Wolf wrote: External callers of blk_co_*() don't currently increase the BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there is an inconsistency whether the counter has been increased or not. This patch moves the actual operations to static functions th

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Kevin Wolf
Am 07.04.2020 um 08:41 hat Vladimir Sementsov-Ogievskiy geschrieben: > 06.04.2020 20:14, Kevin Wolf wrote: > > External callers of blk_co_*() don't currently increase the > > BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there > > is an inconsistency whether the counter has been

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Vladimir Sementsov-Ogievskiy
07.04.2020 11:52, Kevin Wolf wrote: Am 07.04.2020 um 08:41 hat Vladimir Sementsov-Ogievskiy geschrieben: 06.04.2020 20:14, Kevin Wolf wrote: External callers of blk_co_*() don't currently increase the BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there is an inconsistency wh

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Kevin Wolf
Am 07.04.2020 um 11:10 hat Vladimir Sementsov-Ogievskiy geschrieben: > 07.04.2020 11:52, Kevin Wolf wrote: > > Am 07.04.2020 um 08:41 hat Vladimir Sementsov-Ogievskiy geschrieben: > > > 06.04.2020 20:14, Kevin Wolf wrote: > > > > External callers of blk_co_*() don't currently increase the > > > > B

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Vladimir Sementsov-Ogievskiy
07.04.2020 12:48, Kevin Wolf wrote: Am 07.04.2020 um 11:10 hat Vladimir Sementsov-Ogievskiy geschrieben: 07.04.2020 11:52, Kevin Wolf wrote: Am 07.04.2020 um 08:41 hat Vladimir Sementsov-Ogievskiy geschrieben: 06.04.2020 20:14, Kevin Wolf wrote: External callers of blk_co_*() don't currently

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Max Reitz
On 06.04.20 19:14, Kevin Wolf wrote: > External callers of blk_co_*() don't currently increase the > BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there > is an inconsistency whether the counter has been increased or not. > > This patch moves the actual operations to static fun

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Max Reitz
On 07.04.20 12:04, Max Reitz wrote: > On 06.04.20 19:14, Kevin Wolf wrote: >> External callers of blk_co_*() don't currently increase the >> BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there >> is an inconsistency whether the counter has been increased or not. >> >> This patch

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Kevin Wolf
Am 07.04.2020 um 12:15 hat Max Reitz geschrieben: > On 07.04.20 12:04, Max Reitz wrote: > > On 06.04.20 19:14, Kevin Wolf wrote: > >> External callers of blk_co_*() don't currently increase the > >> BlockBackend.in_flight counter, but calls from blk_aio_*() do, so there > >> is an inconsistency whe

Re: [PATCH for-5.0 v2 2/3] block: Increase BB.in_flight for coroutine interfaces

2020-04-07 Thread Max Reitz
On 07.04.20 13:13, Kevin Wolf wrote: > Am 07.04.2020 um 12:15 hat Max Reitz geschrieben: >> On 07.04.20 12:04, Max Reitz wrote: >>> On 06.04.20 19:14, Kevin Wolf wrote: External callers of blk_co_*() don't currently increase the BlockBackend.in_flight counter, but calls from blk_aio_*() d