xfs: unwind the try_again loop in xfs_log_force
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Mar 2018 06:15:30 +0000 (23:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Mar 2018 01:05:06 +0000 (18:05 -0700)
commit3e4da466bfa1dea40b2b23130a9dc4acebcc9f14
tree08f40d032caf9bb383dce5e117b4205bcc657f88
parent93806299b56b22df8fec9b78cb4c9c41d283ee2a
xfs: unwind the try_again loop in xfs_log_force

Instead split out a __xfs_log_fore_lsn helper that gets called again
with the already_slept flag set to true in case we had to sleep.

This prepares for aio_fsync support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c