On 07/14/2015 10:00 PM, Himanshu Madhani wrote: > From: Alexei Potashnik <ale...@purestorage.com> > > - keep qla_tgt_sess object on the session list until it's freed > > - modify use of sess->deleted flag to differentiate delayed > session deletion that can be cancelled from irreversible one: > QLA_SESS_DELETION_PENDING vs QLA_SESS_DELETION_IN_PROGRESS > > - during IN_PROGRESS deletion all newly arrived commands and TMRs will > be rejected, existing commands and TMRs will be terminated when > given by the core to the fabric or simply dropped if session logout > has already happened (logout terminates all existing exchanges) > > - new PLOGI will initiate deletion of the following sessions > (unless deletion is already IN_PROGRESS): > - with the same port_name (with logout) > - different port_name, different loop_id but the same port_id > (with logout) > - different port_name, different port_id, but the same loop_id > (without logout) > > - additionally each new PLOGI will store imm notify iocb in the > same port_name session being deleted. When deletion process > completes this iocb will be acked. Only the most recent PLOGI > iocb is stored. The older ones will be terminated when replaced. > > - new PRLI will initiate deletion of the following sessions > (unless deletion is already IN_PROGRESS): > - different port_name, different port_id, but the same loop_id > (without logout) > > Cc: <sta...@vger.kernel.org> > Signed-off-by: Alexei Potashnik <ale...@purestorage.com> > Acked-by: Quinn Tran <quinn.t...@qlogic.com> > Signed-off-by: Himanshu Madhani <himanshu.madh...@qlogic.com> > --- Reviewed-by: Hannes Reinecke <h...@suse.com>
Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html