Commit bc6e588a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: do not update xa_last_pushed_lsn for locked items

If an item was locked we should not update xa_last_pushed_lsn and thus skip
it when restarting the AIL scan as we need to be able to lock and write it
out as soon as possible.  Otherwise heavy lock contention might starve AIL
pushing too easily, especially given the larger backoff once we moved
xa_last_pushed_lsn all the way to the target lsn.
Signed-off-by: default avatarChristoph Hellwig <>
Reported-by: default avatarStefan Priebe <>
Tested-by: default avatarStefan Priebe <>
Reviewed-by: default avatarDave Chinner <>
Signed-off-by: default avatarAlex Elder <>
parent 65112dcc
...@@ -440,7 +440,6 @@ xfs_ail_worker( ...@@ -440,7 +440,6 @@ xfs_ail_worker(
XFS_STATS_INC(xs_push_ail_locked); XFS_STATS_INC(xs_push_ail_locked);
ailp->xa_last_pushed_lsn = lsn;
stuck++; stuck++;
break; break;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment