OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Miod Vallat (miodcvs.openbsd.org)
Date: Tue Mar 03 2009 - 13:08:25 CST


CVSROOT: /cvs
Module name: src
Changes by: miodcvs.openbsd.org 2009/03/03 12:08:25

Modified files:
        sys/dev/ic : osiop.c

Log message:
Make sure the scsi_xfer timeout is triggered while the command is still alive.
With the current code, a fast command could complete between splx and
the timeout being triggered, we'd then happily return COMPLETE, reuse
the scsi_xfer, schedule the timeout again, causing a nice cycle in the
timeout wheels.

(I know, I know, I have to inspect all other scsi drivers now, but I'm
really tired after spending three hours on this)