Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/ufs/ufs



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@localhost>
                Bill Stouder-Studenmund <wrstuden%netbsd.org@localhost>


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.




Home | Main Index | Thread Index | Old Index