[PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-05-01 Thread ethanwu
In preivous patch: Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist We avoid starting btrfs transaction and get transaction from fs_info->running_transaction directly. When accessing running_transaction in check_delayed_ref, there's a chance that current transaction will be freed

[PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-29 Thread ethanwu
In preivous patch: Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist We avoid starting btrfs transaction and get this information from fs_info->running_transaction directly. When accessing running_transaction in check_delayed_ref, there's a chance that current transaction will be

Re: [PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-28 Thread kbuild test robot
Hi ethanwu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v4.17-rc2] [also build test WARNING on next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-28 Thread kbuild test robot
Hi ethanwu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v4.17-rc2] [also build test WARNING on next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-28 Thread kbuild test robot
Hi ethanwu, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.17-rc2] [also build test ERROR on next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-27 Thread Nikolay Borisov
On 27.04.2018 12:58, ethanwu wrote: > In preivous patch: > Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist > We avoid starting btrfs transaction and get this information from > fs_info->running_transaction directly. > > When accessing running_transaction in check_delayed_ref,

[PATCH] btrfs: Take trans lock before access running trans in check_delayed_ref

2018-04-27 Thread ethanwu
In preivous patch: Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist We avoid starting btrfs transaction and get this information from fs_info->running_transaction directly. When accessing running_transaction in check_delayed_ref, there's a chance that current transaction will be