]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: move b_li_list based retry handling to common code
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 14:12:18 +0000 (15:12 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jan 2025 10:38:15 +0000 (11:38 +0100)
commit4f1aefd13e94bbf027f87befb2e2206ca73a5e7f
tree5ea3c5c4e6b1d333fb3d4e718f6821b7027cd6a4
parent46eba93d4f582dce63dfdf506a6f2edf8f1787c8
xfs: move b_li_list based retry handling to common code

The dquot and inode version are very similar, which is expected given the
overall b_li_list logic.  The differences are that the inode version also
clears the XFS_LI_FLUSHING which is defined in common but only ever set
by the inode item, and that the dquot version takes the ail_lock over
the list iteration.  While this seems sensible given that additions and
removals from b_li_list are protected by the ail_lock, log items are
only added before buffer submission, and are only removed when completing
the buffer, so nothing can change the list when retrying a buffer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_dquot.c
fs/xfs/xfs_inode_item.c