[PATCH v2] Btrfs: fix error path when failing to submit bio for direct IO write

2015-11-25 Thread fdmanana
From: Filipe Manana Commit 61de718fceb6 ("Btrfs: fix memory corruption on failure to submit bio for direct IO") fixed problems with the error handling code after we fail to submit a bio for direct IO. However there were 2 problems that it did not address when the failure is

Re: [PATCH v2] Btrfs: fix error path when failing to submit bio for direct IO write

2015-11-25 Thread Liu Bo
On Tue, Nov 24, 2015 at 11:35:25PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > Commit 61de718fceb6 ("Btrfs: fix memory corruption on failure to submit > bio for direct IO") fixed problems with the error handling code after we > fail to submit a bio for direct