summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJavier Tia <javier@peridio.com>2026-08-10 17:06:15 -0600
committerCarlos Maiolino <cem@kernel.org>2026-09-07 07:50:34 +0200
commitd058f24b163a8d63866ac6bbe5f06b41aabe97d7 (patch)
treecb7fbd19a717515dc53e19927c729e28af9b550a /scripts/patch-kernel
parent91c15cee394e9958898ef1ed55d9ced4c26e2800 (diff)
xfs: report the error that made deferred work shut down the fs
When a deferred operation fails and shuts the filesystem down, xfs_defer_finish_noroll() reports neither the errno nor which operation originated it, so the log cannot tell a transient -ENOSPC from real corruption. Report the operation type, errno and remaining reservation. trace_xfs_defer_finish_error() runs after xfs_force_shutdown(), which BUGs under fs.xfs.panic_mask and so never fires for the first failure; move it ahead of the shutdown and mirror it to xfs_alert() for systems without tracing armed. Capture the op name while the item is live (dfp is freed once its work list drains) and suppress the alert once the fs is already down. Signed-off-by: Javier Tia <floss@jetm.me> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions