summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2025-01-09 01:54:02 +0100
committerCarlos Maiolino <cem@kernel.org>2025-01-10 10:12:48 +0100
commit111d36d6278756128b7d7fab787fdcbf8221cd98 (patch)
treecf867df59d783bdb656178379743c1a6b6afb82d /fs
parentxfs: don't return an error from xfs_update_last_rtgroup_size for !XFS_RT (diff)
downloadlinux-111d36d6278756128b7d7fab787fdcbf8221cd98.tar.xz
linux-111d36d6278756128b7d7fab787fdcbf8221cd98.zip
xfs: lock dquot buffer before detaching dquot from b_li_list
We have to lock the buffer before we can delete the dquot log item from the buffer's log item list. Cc: stable@vger.kernel.org # v6.13-rc3 Fixes: acc8f8628c3737 ("xfs: attach dquot buffer to dquot log item buffer") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_dquot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c
index f11d475898f2..201c26322ede 100644
--- a/fs/xfs/xfs_dquot.c
+++ b/fs/xfs/xfs_dquot.c
@@ -87,8 +87,9 @@ xfs_dquot_detach_buf(
}
spin_unlock(&qlip->qli_lock);
if (bp) {
+ xfs_buf_lock(bp);
list_del_init(&qlip->qli_item.li_bio_list);
- xfs_buf_rele(bp);
+ xfs_buf_relse(bp);
}
}