Subject: CVS commit: src/sys/ufs/ufs
To: None <source-changes@NetBSD.org>
From: Juergen Hannken-Illjes <hannken@netbsd.org>
List: source-changes
Date: 07/19/2007 09:33:04
Module Name: src
Committed By: hannken
Date: Thu Jul 19 09:33:04 UTC 2007
Modified Files:
src/sys/ufs/ufs: ufs_quota.c
Log Message:
Update and add locking to ufs_quota:
- Replace DQ_LOCK/DQ_WANT/sleep/wakeup with a mutex `dq_interlock'. Use this
mutex to protect all quota values and flags.
- Protect the hashtable with a mutex.
- Never update quotas for the quota files on the same file system. Prevents
a deadlock when dqsync() has to change the quota file's size (PR #13942).
Reviewed by: Andrew Doran <ad@netbsd.org>
Bill Stouder-Studenmund <wrstuden@netbsd.org>
To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 src/sys/ufs/ufs/ufs_quota.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.