summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-09-21 14:52:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-09-21 14:52:38 +0000
commit6187ec1ec2bfc94aadba31df12699acd6c98462b (patch)
treefdeb038347c34555561bf16b5d2a1f121640d78d /sys/arch/sparc64/dev
parentccbfd2da2efc9721a78b44ff5609165f241ed9b8 (diff)
Don't request an ACK from the server if we're polling.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/vdsk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c
index 275140a5bf8..acff2f3d5fa 100644
--- a/sys/arch/sparc64/dev/vdsk.c
+++ b/sys/arch/sparc64/dev/vdsk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsk.c,v 1.44 2014/09/21 14:15:01 kettenis Exp $ */
+/* $OpenBSD: vdsk.c,v 1.45 2014/09/21 14:52:37 kettenis Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
@@ -1087,7 +1087,10 @@ vdsk_submit_cmd(struct scsi_xfer *xs)
ncookies++;
}
- sc->sc_vd->vd_desc[desc].hdr.ack = 1;
+ if (ISSET(xs->flags, SCSI_POLL) == 0)
+ sc->sc_vd->vd_desc[desc].hdr.ack = 1;
+ else
+ sc->sc_vd->vd_desc[desc].hdr.ack = 0;
sc->sc_vd->vd_desc[desc].operation = operation;
sc->sc_vd->vd_desc[desc].slice = VD_SLICE_NONE;
sc->sc_vd->vd_desc[desc].status = 0xffffffff;