]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Properly retry failed dquot items in case of error during buffer writeback
authorCarlos Maiolino <cmaiolino@redhat.com>
Tue, 28 Nov 2017 16:54:10 +0000 (08:54 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 30 Nov 2017 16:47:40 +0000 (08:47 -0800)
commitfa67443c1c45d5efd9d9d232cdb9d2c72b1fb078
treeb5ed363a432290a113e2f59a05d24973a629d437
parentb532d45f35b1414ceb34b6373b631efbf6cba0f2
xfs: Properly retry failed dquot items in case of error during buffer writeback

Once the inode item writeback errors is already fixed, it's time to fix the same
problem in dquot code.

Although there were no reports of users hitting this bug in dquot code (at least
none I've seen), the bug is there and I was already planning to fix it when the
correct approach to fix the inodes part was decided.

This patch aims to fix the same problem in dquot code, regarding failed buffers
being unable to be resubmitted once they are flush locked.

Tested with the recently test-case sent to fstests list by Hou Tao.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_dquot_item.c