Skip to content

quota: Use s_umount for quota on/off serialization

Jan Kara linux-fsdevel ocfs2-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fs: Provide function to get superblock with exclusive s_umountfs/super.c include/linux/fs.h+62 -200 replies
2/7quota: Hold s_umount in exclusive mode when enabling / disabling quotasfs/quota/dquot.c fs/quota/quota.c+24 -20 replies
3/7quota: Use s_umount protection for quota operationsfs/quota/dquot.c fs/quota/quota.c+11 -340 replies
4/7ocfs2: Protect periodic quota syncing with s_umount semaphorefs/ocfs2/quota_global.c fs/ocfs2/super.c+9 -20 replies
5/7quota: Remove dqonoff_mutex from dquot_scan_active()fs/quota/dquot.c+2 -20 replies
6/7ocfs2: Use s_umount for quota recovery protectionfs/ocfs2/quota_local.c+7 -40 replies
7/7quota: Remove dqonoff_mutexfs/quota/dquot.c fs/super.c include/linux/quota.h+23 -570 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchEric Ren
SeriesT-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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/7] quota: Use s_umount for quota on/off serialization

Hello,

this patch set changes quota code to use s_umount semaphore for serialization of quota on/off operations among each other and with other quotactl and quota writeback operations. So far we have used dedicated dqonoff_mutex but that triggered lockdep warnings during fs freezing and also unnecessarily serialized some quotactl operations.

Al, any objections to patch 1/7 exporting functionality to get superblock with s_umount in exclusive mode? Alternatively I could add a wrapper around get_super_thawed() in quota code to drop s_umount & get it in exclusive mode and recheck that superblock didn't get unmounted / frozen but what I did here looked cleaner to me.

OCFS2 guys, it would be good if you could test ocfs2 quotas with this patch set in some multi-node setup (I have tested just with a single node), especially whether quota file recovery for other nodes still works as expected. Thanks.

If nobody objects, I'll push these changes through my tree to Linus.

Honza