Re: [f2fs-dev] [RFC] f2fs: fix a race condition between evict & gc

2016-05-18 Thread Hou Pengyang
On 2016/5/18 1:23, Jaegeuk Kim wrote: On Tue, May 17, 2016 at 11:00:53AM +0800, Hou Pengyang wrote: On 2016/5/16 23:10, Chao Yu wrote: Hi chao, Hi Pengyang, On 2016/5/16 18:40, Hou Pengyang wrote: When collecting data segment(gc_data_segment), there is a race condition between evict and phase

Re: [f2fs-dev] [RFC] f2fs: fix a race condition between evict & gc

2016-05-17 Thread Jaegeuk Kim
On Tue, May 17, 2016 at 11:00:53AM +0800, Hou Pengyang wrote: > On 2016/5/16 23:10, Chao Yu wrote: > Hi chao, > > Hi Pengyang, > > > > On 2016/5/16 18:40, Hou Pengyang wrote: > >> When collecting data segment(gc_data_segment), there is a race condition > >> between evict and phases of gc: > >> 0) r

Re: [f2fs-dev] [RFC] f2fs: fix a race condition between evict & gc

2016-05-16 Thread Hou Pengyang
On 2016/5/16 23:10, Chao Yu wrote: Hi chao, Hi Pengyang, On 2016/5/16 18:40, Hou Pengyang wrote: When collecting data segment(gc_data_segment), there is a race condition between evict and phases of gc: 0) ra_node_page(dnode) 1) ra_node_page(inode) <--- evict the inode 2) f2fs_ig

Re: [f2fs-dev] [RFC] f2fs: fix a race condition between evict & gc

2016-05-16 Thread Chao Yu
Hi Pengyang, On 2016/5/16 18:40, Hou Pengyang wrote: > When collecting data segment(gc_data_segment), there is a race condition > between evict and phases of gc: > 0) ra_node_page(dnode) > 1) ra_node_page(inode) > <--- evict the inode > 2) f2fs_iget get the inode and add it to gc_lis