diff options
| author | Chao Yu <yuchao0@huawei.com> | 2018-10-22 09:12:51 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-10-29 18:46:23 -0700 |
| commit | fb363c5db4200af3eaaa1665aa2290f8a4121b24 (patch) | |
| tree | 667c542a2fb243cdba811d40ff135078680b3a43 /include/linux/console_struct.h | |
| parent | c4b87d0c1ca217e4f925034b213e57995e2bd986 (diff) | |
f2fs: fix to account IO correctly
Below race can cause reversed reference on dirty count, fix it by
relocating __submit_bio() and inc_page_count().
Thread A Thread B
- f2fs_inplace_write_data
- f2fs_submit_page_bio
- __submit_bio
- f2fs_write_end_io
- dec_page_count
- inc_page_count
Cc: <stable@vger.kernel.org>
Fixes: d1b3e72d5490 ("f2fs: submit bio of in-place-update pages")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions
