Re: [f2fs-dev] [PATCH v4] F2FS: invalidate META_MAPPING before IPU/DIO write

2021-11-02 Thread Chao Yu
On 2021/11/2 15:10, Hyeong-Jun Kim wrote: Encrypted pages during GC are read and cached in META_MAPPING. However, due to cached pages in META_MAPPING, there is an issue where newly written pages are lost by IPU or DIO writes. Thread A - f2fs_gc()Thread B /* phase 3 */ down_write(i_gc

[f2fs-dev] [PATCH v4] F2FS: invalidate META_MAPPING before IPU/DIO write

2021-11-02 Thread Hyeong-Jun Kim
Encrypted pages during GC are read and cached in META_MAPPING. However, due to cached pages in META_MAPPING, there is an issue where newly written pages are lost by IPU or DIO writes. Thread A - f2fs_gc()Thread B /* phase 3 */ down_write(i_gc_rwsem) ra_data_block() (a) up_wr