Daeho Jeong 674c17d879 f2fs: protect new segment allocation in expand_inode_data
Found a new segemnt allocation without f2fs_lock_op() in
expand_inode_data(). So, when we do fallocate() for a pinned file
and trigger checkpoint very frequently and simultaneously. F2FS gets
stuck in the below code of do_checkpoint() forever.

  f2fs_sync_meta_pages(sbi, META, LONG_MAX, FS_CP_META_IO);
  /* Wait for all dirty meta pages to be submitted for IO */
                                                <= if fallocate() here,
  f2fs_wait_on_all_pages(sbi, F2FS_DIRTY_META); <= it'll wait forever.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2020-05-30 08:49:04 -07:00
..
2019-05-08 21:36:51 -07:00
2020-04-06 13:05:26 -07:00
2020-05-18 13:23:32 -07:00
2020-05-18 23:43:58 -07:00
2020-05-18 13:23:32 -07:00
2020-05-18 13:23:32 -07:00
2020-01-28 10:37:32 -08:00
2020-05-18 23:43:53 -07:00
2020-05-18 13:23:32 -07:00
2020-04-06 13:05:25 -07:00