> +             /*
> +              * Retry on ALUA state transition or if any
> +              * UNIT ATTENTION occurred.
> +              */
> +             if (sense_hdr.sense_key == NOT_READY &&
> +                 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a)
> +                     err = SCSI_DH_RETRY;
> +             if (sense_hdr.sense_key == UNIT_ATTENTION)

else if or just but cases in the same condition for clarity?

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <h...@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to