From 235d8032eba9bca0b453095d64a905f0beb150b3 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 5 Mar 2002 06:51:40 +0000 Subject: Deal gracefully with ccb starvation --- sys/dev/ic/aac.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index 7f7b49a688a..93166d92129 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.10 2001/11/06 19:53:18 miod Exp $ */ +/* $OpenBSD: aac.c,v 1.11 2002/03/05 06:51:39 niklas Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -727,15 +727,11 @@ aac_scsi_cmd(xs) ccb = aac_get_ccb(sc, xs->flags); /* - * Are we out of commands, something is wrong. - * + * We are out of commands, try again in a little while. */ if (ccb == NULL) { - printf("%s: no ccb in aac_scsi_cmd", - sc->sc_dev.dv_xname); xs->error = XS_DRIVER_STUFFUP; - xs->flags |= ITSDONE; - scsi_done(xs); + xs->flags |= TRY_AGAIN_LATER; goto ready; } -- cgit v1.2.3