diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-10-16 20:20:53 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-10-23 03:54:46 +0300 |
| commit | 5f9abab42b60e67846cd13dafc6a61d70d7a2682 (patch) | |
| tree | 6563b21f06403ce9a9773dc1556087bef7c79b3a /lib/mpi/mpi-cmp.c | |
| parent | 78efac537de33faab9a4302cc05a70bb4a8b3b63 (diff) | |
| download | linux-5f9abab42b60e67846cd13dafc6a61d70d7a2682.tar.xz | |
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>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
