SCSI HBA drivers need to report success/error through xs, not xs->bp.
authormatthew <matthew@openbsd.org>
Wed, 14 Jul 2010 06:16:04 +0000 (06:16 +0000)
committermatthew <matthew@openbsd.org>
Wed, 14 Jul 2010 06:16:04 +0000 (06:16 +0000)
commit12271e3c3a11d21fd908b9bbbd4df05a37b3891a
tree50663e0a3c925104d704348d343343636d7adff9
parent20aa2ee7cda99b89e81c5eac2c3e3aaf3cd1765e
SCSI HBA drivers need to report success/error through xs, not xs->bp.
By trying to do the latter, ioprbs(4) was inadvertently always
signalling to the SCSI mid and upper layers that read/write requests
succeeded, even if they failed or only partially completed.

Light testing by claudio@, which is still way more effort than this
driver deserved.
sys/dev/i2o/ioprbs.c