Liu Bo ad9ee2053f Btrfs: fix hang when failing to submit bio of directIO
The hang is uncoverd by generic/019.

btrfs_endio_direct_write() skips the "finish_ordered_fn" part when it hits
an error, thus those added ordered extents will never get processed, which
block processes that waiting for them via btrfs_start_ordered_extent().

This fixes the above, and meanwhile finish_ordered_fn will do the space
accounting work.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Tested-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
2015-07-01 17:17:20 -07:00
..
2015-04-21 16:16:02 -04:00
2015-04-11 22:29:40 -04:00
2014-11-19 13:01:20 -05:00
2015-04-11 22:29:39 -04:00
2015-05-28 23:45:30 -04:00
2015-04-17 09:04:07 -04:00
2015-04-17 09:04:12 -04:00
2015-05-09 00:12:48 -04:00
2015-04-24 07:08:41 -07:00
2014-11-19 13:01:26 -05:00