Re: [f2fs-dev] [PATCH] f2fs: avoid hungtask when gc encrypted block if io_bits is set

2018-01-11 Thread Chao Yu
On 2018/1/11 11:52, Sheng Yong wrote: > When io_bits is set, gc encrypted block may trigger the following hungtask. > Since io_bits requires aligned block address, f2fs_submit_page_write may > return -EAGAIN if new_blkaddr does not satisify io_bits alignment. > > So let's try to alloc new block

[f2fs-dev] [PATCH] f2fs: avoid hungtask when gc encrypted block if io_bits is set

2018-01-10 Thread Sheng Yong
When io_bits is set, gc encrypted block may trigger the following hungtask. Since io_bits requires aligned block address, f2fs_submit_page_write may return -EAGAIN if new_blkaddr does not satisify io_bits alignment. So let's try to alloc new block address to make sure encrypted page could be