]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: fix xfs_group release bug in xfs_dax_notify_dev_failure
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 Feb 2026 23:25:36 +0000 (15:25 -0800)
committerCarlos Maiolino <cem@kernel.org>
Wed, 25 Feb 2026 12:58:49 +0000 (13:58 +0100)
commiteb8550fb75a875657dc29e3925a40244ec6b6bd6
tree2ab15b92ad821a2a1b98092e56bf8e2a8811b770
parent161456987a1fe4ad73c3f36dec1f684316ac9bdd
xfs: fix xfs_group release bug in xfs_dax_notify_dev_failure

Chris Mason reports that his AI tools noticed that we were using
xfs_perag_put and xfs_group_put to release the group reference returned
by xfs_group_next_range.  However, the iterator function returns an
object with an active refcount, which means that we must use the correct
function to release the active refcount, which is _rele.

Cc: <stable@vger.kernel.org> # v6.0
Fixes: 6f643c57d57c56 ("xfs: implement ->notify_failure() for XFS")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_notify_failure.c