]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: remove q_qlock locking in xfs_qm_scall_setqlim
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2025 13:23:03 +0000 (14:23 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:45:58 +0000 (11:45 +0100)
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>
fs/xfs/xfs_qm_syscalls.c

index 6c8924780d7a6983766efeeed5d7ca41c2dff271..022e2179c06b3bbb7a59237168ae18bfa4ae87eb 100644 (file)
@@ -302,9 +302,7 @@ xfs_qm_scall_setqlim(
                return error;
        }
 
-       mutex_lock(&dqp->q_qlock);
        defq = xfs_get_defquota(q, xfs_dquot_type(dqp));
-       mutex_unlock(&dqp->q_qlock);
 
        error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_setqlim, 0, 0, 0, &tp);
        if (error)