Re: [PATCH] migration/multifd: Don't fsync when closing QIOChannelFile

2024-03-06 Thread Peter Xu
On Wed, Mar 06, 2024 at 09:25:24AM +, Daniel P. Berrangé wrote: > On Wed, Mar 06, 2024 at 08:52:41AM +0800, Peter Xu wrote: > > On Tue, Mar 05, 2024 at 05:49:33PM +, Daniel P. Berrangé wrote: > > > I don't think you should be removing this. Calling qio_channel_close() > > > remains recommen

Re: [PATCH] migration/multifd: Don't fsync when closing QIOChannelFile

2024-03-06 Thread Daniel P . Berrangé
On Wed, Mar 06, 2024 at 08:52:41AM +0800, Peter Xu wrote: > On Tue, Mar 05, 2024 at 05:49:33PM +, Daniel P. Berrangé wrote: > > I don't think you should be removing this. Calling qio_channel_close() > > remains recommended best practice, even with fdatasync() removed, as > > it provides a stron

Re: [PATCH] migration/multifd: Don't fsync when closing QIOChannelFile

2024-03-05 Thread Peter Xu
On Tue, Mar 05, 2024 at 05:49:33PM +, Daniel P. Berrangé wrote: > I don't think you should be removing this. Calling qio_channel_close() > remains recommended best practice, even with fdatasync() removed, as > it provides a strong guarantee that the FD is released which you don't > get if you r

Re: [PATCH] migration/multifd: Don't fsync when closing QIOChannelFile

2024-03-05 Thread Daniel P . Berrangé
On Tue, Mar 05, 2024 at 02:43:32PM -0300, Fabiano Rosas wrote: > Commit bc38feddeb ("io: fsync before closing a file channel") added a > fsync/fdatasync at the closing point of the QIOChannelFile to ensure > integrity of the migration stream in case of QEMU crash. > > The decision to do the sync a