xfs: lift init CIL reservation out of xc_cil_lock
authorDave Chinner <dchinner@redhat.com>
Fri, 1 Jul 2022 16:11:52 +0000 (02:11 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 1 Jul 2022 16:11:52 +0000 (02:11 +1000)
commit12380d237b819bd6cf2183f10b55ab47cdaab5e6
tree01aaf6b84715c8f4a4b2c14b6953f42e0a9aa524
parent88591e7f06a42b241ca2a3e3e7067a8f17661947
xfs: lift init CIL reservation out of xc_cil_lock

The xc_cil_lock is the most highly contended lock in XFS now. To
start the process of getting rid of it, lift the initial reservation
of the CIL log space out from under the xc_cil_lock.

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