diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-05 06:51:40 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-05 06:51:40 +0000 |
commit | 235d8032eba9bca0b453095d64a905f0beb150b3 (patch) | |
tree | f31620c29cd88c2bacaf6ff485ca8832bab8c2ff /sys/dev/ic | |
parent | 5d0dedb2970d1406a2260fc568fbc0680ef0be04 (diff) |
Deal gracefully with ccb starvation
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/aac.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; } |