summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2025-11-10 14:23:03 +0100
committerCarlos Maiolino <cem@kernel.org>2025-11-11 11:45:58 +0100
commite85e74e4c9a64993ec5f296719705a32feca93c9 (patch)
tree78f3b6c9a8894d06b98ce44aba696a8122df54e7
parent55c1bc3eb9d0f39ea4c078b339a6228f5f62584b (diff)
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>
-rw-r--r--fs/xfs/xfs_qm_syscalls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_qm_syscalls.c b/fs/xfs/xfs_qm_syscalls.c
index 6c8924780d7a..022e2179c06b 100644
--- a/fs/xfs/xfs_qm_syscalls.c
+++ b/fs/xfs/xfs_qm_syscalls.c
@@ -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)