]> git.hungrycats.org Git - linux/commit
Btrfs: add missing end_page_writeback on submit_extent_page failure
authorFilipe Manana <fdmanana@suse.com>
Mon, 22 Sep 2014 16:41:04 +0000 (17:41 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:14:59 +0000 (08:14 -0500)
commitf9b39d40a29dea579bbaf168ead569bd364b8f87
tree2c4b1558f6454eff271e0bd86b05b1e03c437efa
parentdca60c42ab8de96b39c74a043124cef1b7eefa58
Btrfs: add missing end_page_writeback on submit_extent_page failure

If submit_extent_page() fails in write_one_eb(), we end up with the current
page not marked dirty anymore, unlocked and marked for writeback. But we never
end up calling end_page_writeback() against the page, which will make calls to
filemap_fdatawait_range (e.g. at transaction commit time) hang forever waiting
for the writeback bit to be cleared from the page.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 55e3bd2e0c2e1cfb43429b962e61415e0526bc01)
fs/btrfs/extent_io.c