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:40:58 +0000 (17:40 -0700)
commitc5f57523fcd1798eb8aa037ee91a333126718538
tree259d9925b5b1260440a6094e2c864a69c4fd49de
parent4a4f98b7e1613c65ff705a802f480bdfcbf40ae3
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