Re: sg timeout problem

From: Alan Cox
Date: Wed May 06 2009 - 05:38:29 EST


> But if sg is running on top of an actual SCSI driver, someone aborts the
> ioctl after 3 seconds. The ioctl returns success even though the operation
> didn't complete. I tried this with two Adaptec drivers and one NinjaSCSI
> driver with 100% repro.
>
> What am I missing? I need the call to run to completion.

If you set it to the max of a signed int does it behave, or to a large
value thats well under the limit. That will help tell if there is a
problem with sign handling in the scsi code somewhere or it is getting
multiplied up for some reason.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/