diff options
| author | Yunlei He <heyunlei@huawei.com> | 2016-02-23 12:07:56 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:33:08 +0200 |
| commit | 09635f3b8f7614254c0ce9f51a56cc0e29c4761d (patch) | |
| tree | 56864c9ecfff631ab20a7c8283fbe1b78c57b0d9 /include/uapi/linux/mtio.h | |
| parent | c173fa4f4ca710bf5aae9d70b1fcb7e7595a06d9 (diff) | |
f2fs: avoid hungtask problem caused by losing wake_up
The D state of wait_on_all_pages_writeback should be waken by
function f2fs_write_end_io when all writeback pages have been
succesfully written to device. It's possible that wake_up comes
between get_pages and io_schedule. Maybe in this case it will
lost wake_up and still in D state even if all pages have been
write back to device, and finally, the whole system will be into
the hungtask state.
if (!get_pages(sbi, F2FS_WRITEBACK))
break;
<--------- wake_up
io_schedule();
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Biao He <hebiao6@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/uapi/linux/mtio.h')
0 files changed, 0 insertions, 0 deletions
