]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use bitops interface for buf log item AIL flag check
authorBrian Foster <bfoster@redhat.com>
Sat, 24 Sep 2022 12:56:51 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:11 +0000 (11:04 +0200)
commite327b71d2ca21223f8e3b4f3c9e29c984c6ff173
treeb1ba7a7fa3d3cd3138d0d8364f7d38b06d01f656
parent50320a626a3fdd32383de0b8f048941357ac13a5
xfs: use bitops interface for buf log item AIL flag check

commit 9bf30536e16dcb656377e52e5e2703bd8af5661a upstream.

The xfs_log_item flags were converted to atomic bitops as of commit
d70466190d ("xfs: log item flags are racy"). The assert check for
AIL presence in xfs_buf_item_relse() still uses the old value based
check. This likely went unnoticed as XFS_LI_IN_AIL evaluates to 0
and causes the assert to unconditionally pass. Fix up the check.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Fixes: d70466190d ("xfs: log item flags are racy")
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_buf_item.c