xfs: avoid cil push lock if possible
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jul 2022 08:56:08 +0000 (18:56 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 Jul 2022 08:56:08 +0000 (18:56 +1000)
commit1ccb0745a97fb8b38913b39b8ecb1aea39fdbcb0
tree5baaac02408ac3ab6141fd02e4d9b940b923750e
parent4eb56069cb2835fafe569e27e746e6a4c9735186
xfs: avoid cil push lock if possible

Because now it hurts when the CIL fills up.

  - 37.20% __xfs_trans_commit
      - 35.84% xfs_log_commit_cil
         - 19.34% _raw_spin_lock
            - do_raw_spin_lock
                 19.01% __pv_queued_spin_lock_slowpath
         - 4.20% xfs_log_ticket_ungrant
              0.90% xfs_log_space_wake

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log_cil.c