summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/recovery.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-11-23 13:16:10 +0100
committerJan Kara <jack@suse.cz>2016-11-24 15:26:53 +0100
commit7d6cd73d33b62021111a469b6a454ec357be295f (patch)
tree7feaea7fdb5d8d49c07a0836fd6f9dcc54290e69 /fs/nilfs2/recovery.c
parentba6379f7e6c7e51b3c0e92672bc61bb6961c2b5e (diff)
downloadlinux-7d6cd73d33b62021111a469b6a454ec357be295f.tar.bz2
quota: Hold s_umount in exclusive mode when enabling / disabling quotas
Currently we hold s_umount semaphore only in shared mode when enabling or disabling quotas and use dqonoff_mutex for serializing quota state changes on a filesystem and also quota state changes with other places depending on current quota state. Using dedicated mutex for this causes possible deadlocks during filesystem freezing (see following commit for details) so we transition to using s_umount semaphore for the necessary synchronization whose lock ordering is properly handled by the filesystem freezing code. As a start grab s_umount in exclusive mode when enabling / disabling quotas. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/nilfs2/recovery.c')
0 files changed, 0 insertions, 0 deletions