diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-11-22 20:09:54 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-11-22 20:09:54 +0000 |
commit | 9626e4cb267b99b0c9c9ce2978e0ccd0f1152df6 (patch) | |
tree | f900e1ad2f80e17509672877c908462ebe8f3653 | |
parent | ed0122c42b0e30373d4fdadceb3ebb8808e3aef3 (diff) |
Nuke TRY_AGAIN_LATER now that no driver returns it.
ok marco@
-rw-r--r-- | sys/scsi/scsi_base.c | 16 | ||||
-rw-r--r-- | sys/scsi/scsiconf.h | 3 |
2 files changed, 4 insertions, 15 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index b8810da2769..55d695f6c4e 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.142 2009/11/12 06:20:27 dlg Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.143 2009/11/22 20:09:53 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -811,9 +811,6 @@ retry: case SUCCESSFULLY_QUEUED: return; - case TRY_AGAIN_LATER: - xs->error = XS_BUSY; - /* FALLTHROUGH */ case COMPLETE: goto retry; } @@ -857,12 +854,10 @@ scsi_execute_xs(struct scsi_xfer *xs) /* * Do the transfer. If we are polling we will return: - * COMPLETE, Was poll, and scsi_done has been called - * TRY_AGAIN_LATER, Adapter short resources, try again + * COMPLETE. * * if under full steam (interrupts) it will return: - * SUCCESSFULLY_QUEUED, will do a wakeup when complete - * TRY_AGAIN_LATER, (as for polling) + * SUCCESSFULLY_QUEUED, will do a wakeup when complete. * After the wakeup, we must still check if it succeeded * * If we have a SCSI_NOSLEEP (typically because we have a buf) @@ -913,16 +908,11 @@ retry: return (EJUSTRETURN); if (xs->bp) return (EJUSTRETURN); - doit: SC_DEBUG(xs->sc_link, SDEV_DB3, ("back in cmd()\n")); if ((error = sc_err1(xs)) != ERESTART) return (error); goto retry; - case TRY_AGAIN_LATER: /* adapter resource shortage */ - xs->error = XS_BUSY; - goto doit; - case NO_CCB: return (EAGAIN); diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index be4d14053dc..3fd333e3f7f 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.109 2009/11/12 06:20:27 dlg Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.110 2009/11/22 20:09:53 krw Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -304,7 +304,6 @@ struct scsi_adapter { * return values for scsi_cmd() */ #define SUCCESSFULLY_QUEUED 0 -#define TRY_AGAIN_LATER 1 #define COMPLETE 2 #define ESCAPE_NOT_SUPPORTED 3 #define NO_CCB 4 |