]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: move b_li_list based retry handling to common code
authorChristoph Hellwig <hch@lst.de>
Mon, 30 Dec 2024 10:39:02 +0000 (10:39 +0000)
committerChristoph Hellwig <hch@lst.de>
Sat, 11 Jan 2025 05:21:43 +0000 (06:21 +0100)
commitf9f4fdff8254d53c9dd975fc441f802f2568081f
tree8cb0bc58f59f2222110c27c205faa0c6cd84ca26
parente4cf459cfa13dec9e8a24e7f267d7654b8ad7383
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>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_dquot.c
fs/xfs/xfs_inode_item.c