> One change I can try is to put the diagnostic printf higher in the
> scsipi_request function
As the problem is so simple to reproduce, I'd put it just below xs = arg.
Or set a breakpoint on scsipi_get_opcodeinfo(), then, when hitting it, one on
mpii_scsipi_request() (provided you find it's
hello. Following up on this thread, I have more diagnostic output.
The problem occurs when a call to scsipi_get_opcodeinfo() is made for a device.
By the time
the request hits the adapter, as shown in the below output, the discrepancy
between xs->resid
and xs->datalen has already