history, nuke all mentions of XS_NO_CCB and the #define.
2006 - 2017. R.I.P.
ok kettenis@ inferred ok dlg@
-/* $OpenBSD: cd.c,v 1.219 2017/05/04 22:47:27 deraadt Exp $ */
+/* $OpenBSD: cd.c,v 1.220 2017/05/29 07:47:13 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
bp->b_resid = xs->resid;
break;
- case XS_NO_CCB:
- /* The adapter is busy, requeue the buf and try it later. */
- disk_unbusy(&sc->sc_dk, bp->b_bcount - xs->resid, bp->b_blkno,
- bp->b_flags & B_READ);
- bufq_requeue(&sc->sc_bufq, bp);
- scsi_xs_put(xs);
- SET(sc->sc_flags, CDF_WAITING);
- timeout_add(&sc->sc_timeout, 1);
- return;
-
case XS_SENSE:
case XS_SHORTSENSE:
#ifdef SCSIDEBUG
-/* $OpenBSD: scsi_base.c,v 1.225 2016/09/15 02:00:18 dlg Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.226 2017/05/29 07:47:13 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
("scsi_interpret_sense returned %#x\n", error));
break;
- case XS_NO_CCB:
case XS_BUSY:
error = scsi_delay(xs, 1);
break;
-/* $OpenBSD: scsiconf.h,v 1.165 2017/05/19 08:31:43 sf Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.166 2017/05/29 07:47:13 krw Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
#define XS_BUSY 5 /* The device busy, try again later? */
#define XS_SHORTSENSE 6 /* Check the ATAPI sense for the error */
#define XS_RESET 8 /* bus was reset; possible retry command */
-#define XS_NO_CCB 9 /* device should requeue io and retry */
/*
* Possible retries for scsi_test_unit_ready()
-/* $OpenBSD: sd.c,v 1.270 2017/05/04 22:47:27 deraadt Exp $ */
+/* $OpenBSD: sd.c,v 1.271 2017/05/29 07:47:13 krw Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
bp->b_resid = xs->resid;
break;
- case XS_NO_CCB:
- /* The adapter is busy, requeue the buf and try it later. */
- disk_unbusy(&sc->sc_dk, bp->b_bcount - xs->resid, bp->b_blkno,
- bp->b_flags & B_READ);
- bufq_requeue(&sc->sc_bufq, bp);
- scsi_xs_put(xs);
- SET(sc->flags, SDF_WAITING);
- timeout_add(&sc->sc_timeout, 1);
- return;
-
case XS_SENSE:
case XS_SHORTSENSE:
#ifdef SCSIDEBUG
-/* $OpenBSD: st.c,v 1.132 2016/09/04 10:51:24 naddy Exp $ */
+/* $OpenBSD: st.c,v 1.133 2017/05/29 07:47:13 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
void
st_buf_done(struct scsi_xfer *xs)
{
- struct st_softc *st = xs->sc_link->device_softc;
struct buf *bp = xs->cookie;
int error, s;
bp->b_resid = xs->resid;
break;
- case XS_NO_CCB:
- /* The adapter is busy, requeue the buf and try it later. */
- bufq_requeue(&st->sc_bufq, bp);
- scsi_xs_put(xs);
- SET(st->flags, ST_WAITING); /* dont let ststart xsh_add */
- timeout_add(&st->sc_timeout, 1);
- return;
-
case XS_SENSE:
case XS_SHORTSENSE:
#ifdef SCSIDEBUG