Re: [PATCH v2] 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 10:59 AM, Liu Bo wrote: > On Mon, Sep 23, 2013 at 10:53:20AM +0100, Filipe David Manana wrote: >> On Mon, Sep 23, 2013 at 10:23 AM, Filipe David Borba Manana >> wrote: >> > Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't >> > wait for delayed work to finis

Re: [PATCH v2] 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:53:20AM +0100, Filipe David Manana wrote: > On Mon, Sep 23, 2013 at 10:23 AM, 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 chan

Re: [PATCH v2] 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 10:23 AM, 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 happens

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

2013-09-23 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