Skip to content

Commit e85e74e

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: remove q_qlock locking in xfs_qm_scall_setqlim
q_type can't change for an existing dquot, so there is no need for the locking here. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 55c1bc3 commit e85e74e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/xfs/xfs_qm_syscalls.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,7 @@ xfs_qm_scall_setqlim(
302302
return error;
303303
}
304304

305-
mutex_lock(&dqp->q_qlock);
306305
defq = xfs_get_defquota(q, xfs_dquot_type(dqp));
307-
mutex_unlock(&dqp->q_qlock);
308306

309307
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_setqlim, 0, 0, 0, &tp);
310308
if (error)

0 commit comments

Comments
 (0)