On Mon, Jul 27, 2009 at 7:59 PM, Vladislav Bolkhovitin<vst@...> wrote:
> Oops, correct subject added.
> Vladislav Bolkhovitin, on 07/27/2009 09:45 PM wrote:
>> I added in r979 in SCST core a facility to abort on timeout stuck in tgt
>> hardware commands. It might happen in case of a firmware crash or reset
>> under load. Without this facility, SCST on any management event will stuck
>> too waiting for those commands to finish.
>> For use it a target driver should only provide in scst_tgt_template a
>> callback on_hw_pending_cmd_timeout() and a timeout value
>> max_hw_pending_time. If one or more commands are stuck in the
>> hardware/firmware for time t, which is max_hw_pending_time <= t <
>> 2*max_hw_pending_time, then on_hw_pending_cmd_timeout() will be called,
>> which is expected to release the commands.
>> A sample how to implement this functionality you can find in r980, where
>> it's implemented for qla2x00t driver.
A great new feature !