From fcf1ccf50edcc0ff72ca72ae88f51b71753cd5ba Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 2 Dec 2005 11:35:11 +0000 Subject: only poll if scsi_poll was requested --- sys/dev/ic/ciss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index f49ea1b4f1b..549418d8243 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.9 2005/11/23 14:46:47 mickey Exp $ */ +/* $OpenBSD: ciss.c,v 1.10 2005/12/02 11:35:10 mickey Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -479,7 +479,7 @@ ciss_cmd(struct ciss_ccb *ccb, int flags, int wait) CISS_DPRINTF(CISS_D_CMD, ("submit=0x%x ", cmd->id)); bus_space_write_4(sc->iot, sc->ioh, CISS_INQ, ccb->ccb_cmdpa); - if (wait) { + if (wait & SCSI_POLL) { struct timeval tv; int etick; CISS_DPRINTF(CISS_D_CMD, ("waiting ")); -- cgit v1.2.3