OSDN Git Service

f2fs: keep migration IO order in LFS mode
authorChao Yu <yuchao0@huawei.com>
Sat, 26 May 2018 01:00:13 +0000 (09:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:46:41 +0000 (17:46 -0700)
commit1f62e4702a34d1fc33be8734777fd858b1147bb7
tree01b03c5125f9cecd9d246e091e67144f84b996f1
parentc4408c238722fdfd3302be50dcce1f89c12d6666
f2fs: keep migration IO order in LFS mode

For non-migration IO, we will keep order of data/node blocks' submitting
as allocation sequence by sorting IOs in per log io_list list, but for
migration IO, it could be out-of-order.

In LFS mode, we should keep all IOs including migration IO be ordered,
so that this patch fixes to add an additional lock to keep submitting
order.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/segment.c
fs/f2fs/super.c