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: David Gwynne (dlgcvs.openbsd.org)
Date: Tue Dec 28 2010 - 21:55:09 CST


CVSROOT: /cvs
Module name: src
Changes by: dlgcvs.openbsd.org 2010/12/28 20:55:09

Modified files:
        sys/dev/pci : mpii.c

Log message:
implement timeouts of scsi commands.

timed out scsi commands get put on a list and an iohandler is
scheduled. that iohandler pulls the timed out scsi command off the
list and issues a task management request to kill all outstanding
io on the target with the timed out io.

all io killed as a result of this request will be returned to the
midlayer with their status set to XS_RESET, which in turn will cause
the midlayer to retry the command. this relies on the previous
commit.