Re: [PATCH 2/4] scsi: add transport host byte errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



michaelc@xxxxxxxxxxx wrote:
> When using multipath and the fast_io_fail_tmo fires then the class
> can fail commands with DID_TRANSPORT_FAILFAST or drivers can use

Bah, that is going to be wrong or ugly for tape commands.

We would want to add another new value, DID_TRANSPORT_ABORTED which
would check the retries or device type. Drivers would use this when
failing IO that was possibly running on the device.

> -
> +	case DID_TRANSPORT_BLOCKED:
> +		/*
> +		 * LLD/transport was disrupted during processing the IO.
> +		 * The transport is now blocked and attempting to recover,
> +		 * and the transport will decide what to do with the IO
> +		 * based on its timers and recovery capablilities.
> +		 */
> +		return NEEDS_RETRY;
> +	case DID_TRANSPORT_FAILFAST:
> +		/*
> +		 * The transport decided to failfast the IO (most likely
> +		 * the fast io fail tmo fired), so send IO directly upwards.
> +		 */
> +		return SUCCESS;
>  	case DID_ERROR:
>  		if (msg_byte(scmd->result) == COMMAND_COMPLETE &&
>  		    status_byte(scmd->result) == RESERVATION_CONFLICT)

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux