kernel-hacking-2024-linux-s.../fs/f2fs
Yunlei He 0ff21646f2 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>
2016-02-23 10:10:09 -08:00
..
acl.c
acl.h
checkpoint.c f2fs: avoid hungtask problem caused by losing wake_up 2016-02-23 10:10:09 -08:00
crypto.c f2fs crypto: f2fs_page_crypto() doesn't need a encryption context 2016-02-22 16:07:23 -08:00
crypto_fname.c f2fs crypto: avoid unneeded memory allocation when {en/de}crypting symlink 2016-02-22 16:07:23 -08:00
crypto_key.c f2fs crypto: add missing locking for keyring_key access 2016-02-22 16:07:23 -08:00
crypto_policy.c f2fs crypto: handle unexpected lack of encryption keys 2016-02-22 16:07:23 -08:00
data.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
debug.c Merge tag 'for-f2fs-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs 2016-01-13 21:01:44 -08:00
dir.c f2fs crypto: make sure the encryption info is initialized on opendir(2) 2016-02-22 16:07:23 -08:00
extent_cache.c f2fs: remove unneeded pointer conversion 2016-02-22 16:07:23 -08:00
f2fs.h f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
f2fs_crypto.h
file.c f2fs crypto: handle unexpected lack of encryption keys 2016-02-22 16:07:23 -08:00
gc.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
gc.h f2fs: detect idle time depending on user behavior 2016-01-11 15:56:37 -08:00
hash.c
inline.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
inode.c f2fs: split drop_inmem_pages from commit_inmem_pages 2016-02-22 16:07:23 -08:00
Kconfig
Makefile
namei.c f2fs: fix to delete old dirent in converted inline directory in ->rename 2016-02-22 21:39:58 -08:00
node.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
node.h f2fs: use wait_for_stable_page to avoid contention 2016-02-22 16:07:23 -08:00
recovery.c f2fs: support revoking atomic written pages 2016-02-22 16:07:23 -08:00
segment.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
segment.h f2fs: split journal cache from curseg cache 2016-02-22 21:39:54 -08:00
shrinker.c
super.c f2fs: show more info about superblock recovery 2016-02-22 21:40:01 -08:00
trace.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
trace.h
xattr.c f2fs: use wait_for_stable_page to avoid contention 2016-02-22 16:07:23 -08:00
xattr.h