summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-12-09 18:41:15 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-12-09 18:41:15 +0000
commitc7eb1914b79cd575d239187d65783314402cca52 (patch)
tree0ee78eebc5b08e536921fd034c67670ed71e4e49 /sys/arch/sparc64
parentd3210e6eb0e294086cc4ed6618e8964586f4daac (diff)
Don't try to shove I/O down the LDC if we're disconnected from the virtual
disk server.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/vdsk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c
index e23ccd3a4dc..feac87ff3f9 100644
--- a/sys/arch/sparc64/dev/vdsk.c
+++ b/sys/arch/sparc64/dev/vdsk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsk.c,v 1.13 2009/12/08 20:37:58 kettenis Exp $ */
+/* $OpenBSD: vdsk.c,v 1.14 2009/12/09 18:41:14 kettenis Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
@@ -956,7 +956,8 @@ vdsk_scsi_cmd(struct scsi_xfer *xs)
int desc, s;
int timeout;
- if (sc->sc_tx_cnt >= sc->sc_vd->vd_nentries)
+ if (sc->sc_vio_state != VIO_ESTABLISHED ||
+ sc->sc_tx_cnt >= sc->sc_vd->vd_nentries)
return (NO_CCB);
desc = sc->sc_tx_prod;