Re: [PATCH 13/20] scsi_dh_alua: simplify sense code handling

2015-07-24 Thread Christoph Hellwig
+ /* + * 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 =

[PATCH 13/20] scsi_dh_alua: simplify sense code handling

2015-07-08 Thread Hannes Reinecke
Most sense code is already handled in the generic code, so we shouldn't be adding special cases here. However, when doing so we need to check for unit attention whenever we're sending an internal command. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/device_handler/scsi_dh_alua.c