f2fs: change to use rwsem for cp_mutex
authorSahitya Tummala <stummala@codeaurora.org>
Mon, 23 Nov 2020 05:28:32 +0000 (10:58 +0530)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:21 +0000 (22:00 -0800)
commit8769918bf06c9cfb01a1a6ee0e547c9916881496
tree5ac4d1494b84a00c6736f28b0fad369d10432ff8
parent7ad08a58bf67594057362e45cbddd3e27e53e557
f2fs: change to use rwsem for cp_mutex

Use rwsem to ensure serialization of the callers and to avoid
starvation of high priority tasks, when the system is under
heavy IO workload.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/recovery.c
fs/f2fs/super.c