diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-12-02 11:35:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-12-02 11:35:11 +0000 |
commit | fcf1ccf50edcc0ff72ca72ae88f51b71753cd5ba (patch) | |
tree | f124aeb7b08e6fd3c0dee20294615cb0df2f04bf /sys | |
parent | 8fc2656c7113642b819f155e486262bd25bc154d (diff) |
only poll if scsi_poll was requested
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ciss.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ")); |