Re: [PATCH 2/2] btrfs: finish ordered extent cleaning if no progress is found

2017-09-07 Thread David Sterba
On Fri, Sep 01, 2017 at 07:31:58PM +0800, Qu Wenruo wrote: > > > On 2017年09月01日 16:59, Naohiro Aota wrote: > > __endio_write_update_ordered() repeats the search until it reaches the end > > of the specified range. This works well with direct IO path, because before > > the function is called,

Re: [PATCH 2/2] btrfs: finish ordered extent cleaning if no progress is found

2017-09-01 Thread Josef Bacik
On Fri, Sep 01, 2017 at 05:59:07PM +0900, Naohiro Aota wrote: > __endio_write_update_ordered() repeats the search until it reaches the end > of the specified range. This works well with direct IO path, because before > the function is called, it's ensured that there are ordered extents filling >

Re: [PATCH 2/2] btrfs: finish ordered extent cleaning if no progress is found

2017-09-01 Thread Qu Wenruo
On 2017年09月01日 16:59, Naohiro Aota wrote: __endio_write_update_ordered() repeats the search until it reaches the end of the specified range. This works well with direct IO path, because before the function is called, it's ensured that there are ordered extents filling whole the range. It's not

[PATCH 2/2] btrfs: finish ordered extent cleaning if no progress is found

2017-09-01 Thread Naohiro Aota
__endio_write_update_ordered() repeats the search until it reaches the end of the specified range. This works well with direct IO path, because before the function is called, it's ensured that there are ordered extents filling whole the range. It's not the case, however, when it's called from