Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Chao Yu
On 2018/11/13 8:34, Jaegeuk Kim wrote: > On 11/12, Chao Yu wrote: >> On 2018-11-12 20:01, Sheng Yong wrote: >>> The following race could lead to inconsistent SIT bitmap: >>> >>> Task A Task B >>> == == >>> f2fs_write_checkpoint >>>

Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Jaegeuk Kim
On 11/12, Chao Yu wrote: > On 2018-11-12 20:01, Sheng Yong wrote: > > The following race could lead to inconsistent SIT bitmap: > > > > Task A Task B > > == == > > f2fs_write_checkpoint > > block_operations > > f2fs_lock_all > >

Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Chao Yu
On 2018-11-12 20:01, Sheng Yong wrote: > The following race could lead to inconsistent SIT bitmap: > > Task A Task B > == == > f2fs_write_checkpoint > block_operations > f2fs_lock_all > down_write(node_change) >

[f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Sheng Yong
The following race could lead to inconsistent SIT bitmap: Task A Task B == == f2fs_write_checkpoint block_operations f2fs_lock_all down_write(node_change) down_write(node_write) ... sync ...