Re: [PATCH v2] Btrfs: add another missing end_page_writeback on submit_extent_page failure

2017-02-10 Thread David Sterba
On Thu, Feb 09, 2017 at 05:24:33PM +0900, Takafumi Kubota wrote: > If btrfs_bio_alloc fails in submit_extent_page, submit_extent_page returns > without clearing the writeback bit of the failed page. > > __extent_writepage_io, that is a caller of submit_extent_page, > does not clear the remaining w

[PATCH v2] Btrfs: add another missing end_page_writeback on submit_extent_page failure

2017-02-09 Thread Takafumi Kubota
If btrfs_bio_alloc fails in submit_extent_page, submit_extent_page returns without clearing the writeback bit of the failed page. __extent_writepage_io, that is a caller of submit_extent_page, does not clear the remaining writeback bit anywhere. As a result, this will cause the hang at filemap_fda