summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2016-02-23 12:07:56 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-23 10:10:09 -0800
commit0ff21646f2a5c6ff77acc51eb3df4235af39be46 (patch)
tree3033f063b1cc1b68f4c607edc68b5055b6e956bf /fs/f2fs/file.c
parent7a9d75481b85d59204d76097d41a28db663a7a43 (diff)
downloadop-kernel-dev-0ff21646f2a5c6ff77acc51eb3df4235af39be46.zip
op-kernel-dev-0ff21646f2a5c6ff77acc51eb3df4235af39be46.tar.gz
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 'fs/f2fs/file.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud