Jaegeuk Kim
85275286d1
f2fs: call f2fs_balance_fs outside of locked page
[ Upstream commit bdf03299248916640a835a05d32841bb3d31912d ]
Otherwise, we can hit deadlock by waiting for the locked page in
move_data_block in GC.
Thread A Thread B
- do_page_mkwrite
- f2fs_vm_page_mkwrite
- lock_page
- f2fs_balance_fs
- mutex_lock(gc_mutex)
- f2fs_gc
- do_garbage_collect
- ra_data_block
- grab_cache_page
- f2fs_balance_fs
- mutex_lock(gc_mutex)
Fixes: 39a8695824 ("f2fs: refactor ->page_mkwrite() flow")
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
|
2020-02-24 08:36:23 +01:00 |
| .. |
|
acl.c
|
f2fs: Replace spaces with tab
|
2019-05-08 21:23:11 -07:00 |
|
acl.h
|
|
|
|
checkpoint.c
|
f2fs: add a rw_sem to cover quota flag changes
|
2019-07-02 15:40:41 -07:00 |
|
data.c
|
f2fs: preallocate DIO blocks when forcing buffered_io
|
2020-02-24 08:36:23 +01:00 |
|
debug.c
|
fs: f2fs: Remove unnecessary checks of SM_I(sbi) in update_general_status()
|
2019-08-23 07:57:12 -07:00 |
|
dir.c
|
f2fs: fix race conditions in ->d_compare() and ->d_hash()
|
2020-02-11 04:35:25 -08:00 |
|
extent_cache.c
|
f2fs: introduce f2fs_<level> macros to wrap f2fs_printk()
|
2019-07-02 15:40:40 -07:00 |
|
f2fs.h
|
f2fs: Fix deadlock in f2fs_gc() context during atomic files handling
|
2020-01-04 19:18:18 +01:00 |
|
file.c
|
f2fs: call f2fs_balance_fs outside of locked page
|
2020-02-24 08:36:23 +01:00 |
|
gc.c
|
f2fs: Fix indefinite loop in f2fs_gc()
|
2019-09-09 13:06:11 +01:00 |
|
gc.h
|
|
|
|
hash.c
|
f2fs: Support case-insensitive file name lookups
|
2019-08-23 07:57:13 -07:00 |
|
inline.c
|
f2fs: fix to avoid accessing uninitialized field of inode page in is_alive()
|
2019-09-16 08:38:26 -07:00 |
|
inode.c
|
f2fs: fix to update time in lazytime mode
|
2020-01-04 19:16:31 +01:00 |
|
Kconfig
|
f2fs: Add a small clarification to CONFIG_FS_F2FS_FS_SECURITY
|
2019-09-16 08:38:48 -07:00 |
|
Makefile
|
f2fs: add fs-verity support
|
2019-08-12 19:33:51 -07:00 |
|
namei.c
|
f2fs: fix to update dir's i_pino during cross_rename
|
2020-01-04 19:17:18 +01:00 |
|
node.c
|
f2fs: fix flushing node pages when checkpoint is disabled
|
2019-09-06 16:18:26 -07:00 |
|
node.h
|
|
|
|
recovery.c
|
f2fs: use generic EFSBADCRC/EFSCORRUPTED
|
2019-07-02 15:40:41 -07:00 |
|
segment.c
|
f2fs: Fix deadlock in f2fs_gc() context during atomic files handling
|
2020-01-04 19:18:18 +01:00 |
|
segment.h
|
f2fs: enhance f2fs_is_checkpoint_ready()'s readability
|
2019-09-06 16:18:26 -07:00 |
|
shrinker.c
|
|
|
|
super.c
|
f2fs: code cleanup for f2fs_statfs_project()
|
2020-02-11 04:35:25 -08:00 |
|
sysfs.c
|
f2fs-for-5.4-rc1
|
2019-09-21 14:26:33 -07:00 |
|
trace.c
|
f2fs: do not use mutex lock in atomic context
|
2019-03-05 19:58:06 -08:00 |
|
trace.h
|
|
|
|
verity.c
|
f2fs: add fs-verity support
|
2019-08-12 19:33:51 -07:00 |
|
xattr.c
|
f2fs: enhance f2fs_is_checkpoint_ready()'s readability
|
2019-09-06 16:18:26 -07:00 |
|
xattr.h
|
f2fs: add fs-verity support
|
2019-08-12 19:33:51 -07:00 |