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>
Thu, 31 May 2018 18:31:51 +0000 (11:31 -0700)
commit107a805de87ec071dab602071c14e67b98b0c519
tree543c688ea92b6651a9bb03b4a7bd09d728aab754
parente5e5732d8120654159254c16834bc8663d8be124
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