]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
f2fs: account read IOs and use IO counts for is_idle
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Oct 2018 17:20:53 +0000 (10:20 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Oct 2018 00:54:46 +0000 (17:54 -0700)
commit5f9abab42b60e67846cd13dafc6a61d70d7a2682
tree6563b21f06403ce9a9773dc1556087bef7c79b3a
parent78efac537de33faab9a4302cc05a70bb4a8b3b63
f2fs: account read IOs and use IO counts for is_idle

This patch adds issued read IO counts which is under block layer.

Chao modified a bit, since:

Below race can cause reversed reference on F2FS_RD_DATA, there is
the same issue in f2fs_submit_page_bio(), fix them by relocate
__submit_bio() and inc_page_count.

Thread A Thread B
- f2fs_write_begin
 - f2fs_submit_page_read
 - __submit_bio
- f2fs_read_end_io
 - __read_end_io
 - dec_page_count(, F2FS_RD_DATA)
 - inc_page_count(, F2FS_RD_DATA)

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