[PATCH 3/3] scsi_dh_hp_sw: switch to scsi_execute_req_flags()

2016-11-03 Thread Hannes Reinecke
Switch to scsi_execute_req_flags() instead of using the block interface directly. This will set REQ_QUIET and REQ_PREEMPT, but this is okay as we're evaluating the errors anyway and should be able to send the command even if the device is quiesced. Switch to scsi_execute_req_flags() instead of usin

Re: [PATCH 3/3] scsi_dh_hp_sw: switch to scsi_execute_req_flags()

2016-11-02 Thread Christoph Hellwig
> + switch (sshdr.sense_key) { > + case NOT_READY: > + if ((sshdr.asc == 0x04) && (sshdr.ascq == 3)) { No need for the inner braces. Otherwise looks fine: Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linu

[PATCH 3/3] scsi_dh_hp_sw: switch to scsi_execute_req_flags()

2016-11-01 Thread Hannes Reinecke
Switch to scsi_execute_req_flags() instead of using the block interface directly. This will set REQ_QUIET and REQ_PREEMPT, but this is okay as we're evaluating the errors anyway and should be able to send the command even if the device is quiesced. Switch to scsi_execute_req_flags() instead of usin

[PATCH 3/3] scsi_dh_hp_sw: switch to scsi_execute_req_flags()

2016-10-31 Thread Hannes Reinecke
Switch to using scsi_execute_req_flags() instead of using the block primitives. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_hp_sw.c | 218 1 file changed, 61 insertions(+), 157 deletions(-) diff --git a/drivers/scsi/device_handler/scsi_dh_