Re: [PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-23 Thread Liu Bo
On Mon, Sep 23, 2013 at 10:11:42AM +0100, Filipe David Manana wrote: > On Mon, Sep 23, 2013 at 2:30 AM, Miao Xie wrote: > > > > On sun, 22 Sep 2013 21:55:53 +0100, Filipe David Borba Manana wrote: > > > Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't > > > wait for delayed wo

Re: [PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-23 Thread Filipe David Manana
On Mon, Sep 23, 2013 at 2:30 AM, Miao Xie wrote: > > On sun, 22 Sep 2013 21:55:53 +0100, Filipe David Borba Manana wrote: > > Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't > > wait for delayed work to finish before returning success to the > > caller. This change fixes this

Re: [PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-22 Thread Miao Xie
On sun, 22 Sep 2013 21:55:53 +0100, Filipe David Borba Manana wrote: > Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't > wait for delayed work to finish before returning success to the > caller. This change fixes this, ensuring that there's no data loss > if a power failure ha

[PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-22 Thread Filipe David Borba Manana
Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't wait for delayed work to finish before returning success to the caller. This change fixes this, ensuring that there's no data loss if a power failure happens right after fs sync returns success to the caller and before the next commit