commit | 5e8cb9b6249de3ac036ef4cf4b7babc2f4b95d90 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Thu Jun 08 15:16:41 2017 +0200 |
committer | Jan Kara <jack@suse.cz> | Thu Aug 17 19:00:50 2017 +0200 |
tree | d1c594afe05bb850be832c423934486324939994 | |
parent | d6ab3661020cbf8a8909b49a8e1408d5ae434001 [diff] |
quota: Protect dquot writeout with dq_lock Currently dquot writeout is only protected by dqio_sem held for writing. As we transition to a finer grained locking we will use dquot->dq_lock instead. So acquire it in dquot_commit() and move dqio_sem just around ->commit_dqblk() call as it is still needed to serialize quota file changes. Reviewed-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Jan Kara <jack@suse.cz>