Home
last modified time | relevance | path

Searched hist:"7 d6cd73d33b62021111a469b6a454ec357be295f" (Results 1 – 2 of 2) sorted by relevance

/linux/fs/quota/
H A Dquota.cdiff 7d6cd73d33b62021111a469b6a454ec357be295f Wed Nov 23 13:16:10 CET 2016 Jan Kara <jack@suse.cz> 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>
H A Ddquot.cdiff 7d6cd73d33b62021111a469b6a454ec357be295f Wed Nov 23 13:16:10 CET 2016 Jan Kara <jack@suse.cz> 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>