]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: use WRITE_ONCE/READ_ONCE for m_errortag
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Jan 2026 05:19:20 +0000 (06:19 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 30 Jan 2026 09:41:42 +0000 (10:41 +0100)
commit4d8f42466a3ba2342b876822ff0582a49e174c9b
tree486f9b69dd2910cff9bce3e3070071cdafe1e3b5
parente2d62bfd99b6b79d7c5a4c543c2d84049f01f24f
xfs: use WRITE_ONCE/READ_ONCE for m_errortag

There is no synchronization for updating m_errortag, which is fine as
it's just a debug tool.  It would still be nice to fully avoid the
theoretical case of torn values, so use WRITE_ONCE and READ_ONCE to
access the members.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_error.c