]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6527f458ae4475bad71fd7819738e2170022263
tree543c688ea92b6651a9bb03b4a7bd09d728aab754
parent0e4a690fe8ed4bd70925909e884230a6f658cf5f
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