f2fs: let sync node IO interrupt async one
authorChao Yu <yuchao0@huawei.com>
Mon, 4 Jun 2018 15:20:36 +0000 (23:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 4 Jun 2018 21:33:20 +0000 (14:33 -0700)
commitc29fd0c0e26dacb7a33ad166587059818a94b4e0
tree6a25f17833047796fccde3cd7c4e17d35199e640
parentaae764ece6076b0852b95943c40748569c7b8585
f2fs: let sync node IO interrupt async one

Although mixed sync/async IOs can have continuous LBA, as they have
different IO priority, block IO scheduler will add them into different
queues and commit them separately, result in splited IOs which causes
wrose performance.

This patch gives high priority to synchronous IO of nodes, means that
once synchronous flow starts, it can interrupt asynchronous writeback
flow of system flusher, so more big IOs can be expected.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/super.c