Skip to content

Fix filesystem freezing

Jan Kara linux-ext4 linux-fsdevel linux-xfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fs: Improve filesystem freezing handlingfs/super.c include/linux/fs.h+134 -16 replies
2/4vfs: Protect write paths by sb_start_write - sb_end_writefs/buffer.c fs/open.c mm/filemap.c+10 -172 replies
3/4ext4: Protect ext4_page_mkwrite with sb_start_write - sb_end_writefs/ext4/inode.c+2 -50 replies
4/4xfs: Protect xfs_file_aio_write() with sb_start_write - sb_end_writefs/xfs/xfs_file.c+4 -22 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTheodore Ts'o
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Fix filesystem freezing

Hello,

filesystem freezing is currently racy and thus we can end up with dirty data
on frozen filesystem (see changelog of the first patch for detailed race description and proposed fix). This patch series aims at fixing this. So far I did basic testing using UML linux (running fsstress and bash-shared-mapping while doing freeze - sync (to deadlock on leftover dirty pages) - unfreeze) and I'm not able to trigger dirty pages on frozen filesystem anymore. I plan to do more testing on real machine tomorrow. Surbhi, Kamal, you were able to reproduce deadlocks due to dirty data as well so please test these patches out. Thanks. Also review of patches is welcome.

Honza