]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: Capture state of the right inode in xfs_iflush_done
authorCarlos Maiolino <cmaiolino@redhat.com>
Fri, 22 Sep 2017 18:47:46 +0000 (11:47 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:21 +0000 (11:23 -0200)
commitee07da3e815326f9fdae394df43f7ee44e5853ad
tree85020cb28abc213964f8860d34ca0a214296c23a
parente2e1ea3ef51518da2f5f93b86d1864a1b25ee51e
xfs: Capture state of the right inode in xfs_iflush_done

BugLink: http://bugs.launchpad.net/bugs/1731951
commit 842f6e9f786226c58fcbd5ef80eadca72fdfe652 upstream.

My previous patch: d3a304b6292168b83b45d624784f973fdc1ca674 check for
XFS_LI_FAILED flag xfs_iflush done, so the failed item can be properly
resubmitted.

In the loop scanning other inodes being completed, it should check the
current item for the XFS_LI_FAILED, and not the initial one.

The state of the initial inode is checked after the loop ends

Kudos to Eric for catching this.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/xfs/xfs_inode_item.c