RE: [PATCH v2 02/10] be2iscsi: Fix closing of connection

2017-03-24 Thread Jitendra Bhivare
> > + attempts = 0; > > + while (attempts++ < 3) { > > + tag = beiscsi_invalidate_cxn(phba, beiscsi_ep); > > + if (tag) { > > + ret = beiscsi_mccq_compl_wait(phba, tag, NULL, > NULL); > > + if (!ret) > > + break;

Re: [PATCH v2 02/10] be2iscsi: Fix closing of connection

2017-03-23 Thread Tomas Henzl
On 16.3.2017 04:24, Jitendra Bhivare wrote: > CID needs to be freed even when invalidate or upload connection fails. > Attempt to close connection 3 times before freeing CID. > > Set cleanup_type to INVALIDATE instead of force TCP_RST. > This unnecessarily is terminating connection with reset