Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Damien Le Moal
On 10/22/24 03:13, Stefan Hajnoczi wrote: > On Mon, Oct 21, 2024 at 09:32:50PM +0900, Damien Le Moal wrote: >> On 10/21/24 20:08, Kevin Wolf wrote: >>> Am 20.10.2024 um 03:03 hat Damien Le Moal geschrieben: On 10/18/24 23:37, Kevin Wolf wrote: > Am 04.10.2024 um 12:41 hat Sam Li geschriebe

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Kevin Wolf
Am 21.10.2024 um 15:21 hat Sam Li geschrieben: > Kevin Wolf 于2024年10月18日周五 16:37写道: > > > > Am 04.10.2024 um 12:41 hat Sam Li geschrieben: > > > When the file-posix driver emulates append write, it holds the lock > > > whenever accessing wp, which limits the IO queue depth to one. > > > > > > The

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Stefan Hajnoczi
On Mon, Oct 21, 2024 at 09:32:50PM +0900, Damien Le Moal wrote: > On 10/21/24 20:08, Kevin Wolf wrote: > > Am 20.10.2024 um 03:03 hat Damien Le Moal geschrieben: > >> On 10/18/24 23:37, Kevin Wolf wrote: > >>> Am 04.10.2024 um 12:41 hat Sam Li geschrieben: > When the file-posix driver emulates

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Sam Li
Kevin Wolf 于2024年10月18日周五 16:37写道: > > Am 04.10.2024 um 12:41 hat Sam Li geschrieben: > > When the file-posix driver emulates append write, it holds the lock > > whenever accessing wp, which limits the IO queue depth to one. > > > > The write IO flow can be optimized to allow concurrent writes. Th

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Damien Le Moal
On 10/21/24 20:08, Kevin Wolf wrote: > Am 20.10.2024 um 03:03 hat Damien Le Moal geschrieben: >> On 10/18/24 23:37, Kevin Wolf wrote: >>> Am 04.10.2024 um 12:41 hat Sam Li geschrieben: When the file-posix driver emulates append write, it holds the lock whenever accessing wp, which limits

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-21 Thread Kevin Wolf
Am 20.10.2024 um 03:03 hat Damien Le Moal geschrieben: > On 10/18/24 23:37, Kevin Wolf wrote: > > Am 04.10.2024 um 12:41 hat Sam Li geschrieben: > >> When the file-posix driver emulates append write, it holds the lock > >> whenever accessing wp, which limits the IO queue depth to one. > >> > >> The

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-19 Thread Damien Le Moal
On 10/18/24 23:37, Kevin Wolf wrote: > Am 04.10.2024 um 12:41 hat Sam Li geschrieben: >> When the file-posix driver emulates append write, it holds the lock >> whenever accessing wp, which limits the IO queue depth to one. >> >> The write IO flow can be optimized to allow concurrent writes. The loc

Re: [PATCH v2] block/file-posix: optimize append write

2024-10-18 Thread Kevin Wolf
Am 04.10.2024 um 12:41 hat Sam Li geschrieben: > When the file-posix driver emulates append write, it holds the lock > whenever accessing wp, which limits the IO queue depth to one. > > The write IO flow can be optimized to allow concurrent writes. The lock > is held in two cases: > 1. Assumed tha

[PATCH v2] block/file-posix: optimize append write

2024-10-04 Thread Sam Li
When the file-posix driver emulates append write, it holds the lock whenever accessing wp, which limits the IO queue depth to one. The write IO flow can be optimized to allow concurrent writes. The lock is held in two cases: 1. Assumed that the write IO succeeds, update the wp before issuing the w