nvme: identify command expiry separately from capacity pressure

This commit is contained in:
pingqiu committed 2026-11-19 01:59:57 -08:00
1 parent 8e546f7fe3
commit e723a2a4fb
1 file changed
+1 -1
+1 -1
View File
@@ -300,7 +300,7 @@ func (h *IOHandler) write(ctx context.Context, cmd IOCommand) IOResult {
// must retain its terminal mapping even when the command deadline also passed.
func mapWriteBudgetError(ctx context.Context, err error, op string) IOResult {
if ctx.Err() == context.DeadlineExceeded && onlyDeadlineCause(err) {
err = fmt.Errorf("%w: %w", frontend.ErrBackendBusy, err)
return IOResult{SCT: SCTGeneric, SC: SCNamespaceNotReady, retryable: true, Reason: "command deadline on " + op + ": " + err.Error()}
}
return mapBackendError(err, op)
}