xfs: remove duplicate wq cancel and log force from attr quiesce
authorBrian Foster <bfoster@redhat.com>
Sat, 23 Jan 2021 00:48:23 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:51 +0000 (16:54 -0800)
These two calls are repeated at the beginning of xfs_log_quiesce().
Drop them from xfs_quiesce_attr().

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/xfs_super.c

index 75ada86..8fc9044 100644 (file)
@@ -884,11 +884,6 @@ void
 xfs_quiesce_attr(
        struct xfs_mount        *mp)
 {
-       cancel_delayed_work_sync(&mp->m_log->l_work);
-
-       /* force the log to unpin objects from the now complete transactions */
-       xfs_log_force(mp, XFS_LOG_SYNC);
-
        xfs_log_clean(mp);
 }