f2fs: do not bother checkpoint by f2fs_get_node_info
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Dec 2021 22:16:32 +0000 (14:16 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jan 2022 21:20:49 +0000 (13:20 -0800)
commita9419b63bf414775e8aeee95d8c4a5e0df690748
tree704a3b3638bc8323c539fb8b9ea6d62bd8db7c81
parent0df035c7208c5e3e2ae7685548353ae536a19015
f2fs: do not bother checkpoint by f2fs_get_node_info

This patch tries to mitigate lock contention between f2fs_write_checkpoint and
f2fs_get_node_info along with nat_tree_lock.

The idea is, if checkpoint is currently running, other threads that try to grab
nat_tree_lock would be better to wait for checkpoint.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/inline.c
fs/f2fs/inode.c
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/segment.c