[PATCH] mutex subsystem, semaphore to mutex: XFS
This patch switches XFS over to use the new mutex code directly as opposed to the previous workaround patch I posted earlier that avoided the namespace clash by forcing it back to semaphores. This falls in the 'works for me<tm>' category. Signed-off-by: Jes Sorensen <jes@trained-monkey.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
de5097c2e7
commit
794ee1baee
@@ -104,7 +104,7 @@ xfs_qm_dqinit(
|
||||
*/
|
||||
if (brandnewdquot) {
|
||||
dqp->dq_flnext = dqp->dq_flprev = dqp;
|
||||
mutex_init(&dqp->q_qlock, MUTEX_DEFAULT, "xdq");
|
||||
mutex_init(&dqp->q_qlock);
|
||||
initnsema(&dqp->q_flock, 1, "fdq");
|
||||
sv_init(&dqp->q_pinwait, SV_DEFAULT, "pdq");
|
||||
|
||||
@@ -1382,7 +1382,7 @@ void
|
||||
xfs_dqlock(
|
||||
xfs_dquot_t *dqp)
|
||||
{
|
||||
mutex_lock(&(dqp->q_qlock), PINOD);
|
||||
mutex_lock(&(dqp->q_qlock));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user