Skip to content

Commit 1fd2801

Browse files
author
Jaegeuk Kim
committed
f2fs: fix deadlock between quota writes and checkpoint
f2fs_write_data_pages(quota_mapping) __f2fs_write_data_pages f2fs_write_checkpoint * blk_start_plug(&plug); * add bio in write_io[DATA] - block_operations - skip syncing quota by >DEFAULT_RETRY_QUOTA_FLUSH_COUNT - down_write(&sbi->node_write); - f2fs_write_single_data_page - down_read(node_write) - f2fs_wait_on_all_pages(F2FS_WB_CP_DATA); Signed-off-by: Daeho Jeong <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 1f07cc5 commit 1fd2801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/f2fs/checkpoint.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,8 @@ void f2fs_wait_on_all_pages(struct f2fs_sb_info *sbi, int type)
12691269
if (type == F2FS_DIRTY_META)
12701270
f2fs_sync_meta_pages(sbi, META, LONG_MAX,
12711271
FS_CP_META_IO);
1272+
else if (type == F2FS_WB_CP_DATA)
1273+
f2fs_submit_merged_write(sbi, DATA);
12721274
io_schedule_timeout(DEFAULT_IO_TIMEOUT);
12731275
}
12741276
finish_wait(&sbi->cp_wait, &wait);

0 commit comments

Comments
 (0)