• Chao Yu's avatar
    Revert: "f2fs: check last page index in cached bio to decide submission" · bab475c5
    Chao Yu authored
    There is one case that we can leave bio in f2fs, result in hanging
    page writeback waiter.
    
    Thread A				Thread B
    - f2fs_write_cache_pages
     - f2fs_submit_page_write
     page #0 cached in bio #0 of cold log
     - f2fs_submit_page_write
     page #1 cached in bio #1 of warm log
    					- f2fs_write_cache_pages
    					 - f2fs_submit_page_write
    					 bio is full, submit bio #1 contain page #1
     - f2fs_submit_merged_write_cond(, page #1)
     fail to submit bio #0 due to page #1 is not in any cached bios.
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    bab475c5
data.c 65.2 KB