]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea21ed04c1b2678cbf3e22df3be8352f04e89dbe
tree6a25f17833047796fccde3cd7c4e17d35199e640
parent720030956b41e5e56b653c73ebb31837f5616d0a
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