On 02/07/2016 07:22 AM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger <[email protected]> > > This patch updates target/iblock backend driver code to > check for bio completion status of -EAGAIN / -ENOMEM > provided by raw block drivers and scsi devices, in order > to generate the following SCSI status to initiators: > > - SAM_STAT_BUSY > - SAM_STAT_TASK_SET_FULL > > Note these two SAM status codes are useful to signal to > Linux SCSI host side that se_cmd should be retried > again, or with TASK_SET_FULL case to attempt to lower > our internal host LLD queue_depth and scsi_cmnd retry. > > It also updates target_complete_cmd() to parse status > when signalling success to target_completion_wq. > > Cc: Christoph Hellwig <[email protected]> > Cc: Hannes Reinecke <[email protected]> > Cc: Sagi Grimberg <[email protected]> > Cc: Andy Grover <[email protected]> > Cc: Mike Christie <[email protected]> > Signed-off-by: Nicholas Bellinger <[email protected]> > --- Reviewed-by: Hannes Reinecke <[email protected]>
Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

