> > + 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;
> > + beiscsi_log(phba, KERN_INFO, BEISCSI_LOG_CONFIG,
> > + "BS_%d : invalidate conn failed cid
%d\n",
> > + beiscsi_ep->ep_cid);
> > + }
> > }
> >
> > - ret = beiscsi_mccq_compl_wait(phba, tag, NULL, NULL);
> > -
> > - /* Flush the CQ entries */
> > + /* wait for all completions to arrive, then process them */
> > + msleep(250);
> > + /* flush CQ entries */
> > beiscsi_flush_cq(phba);
> >
> > - return ret;
> > + if (attempts == 3)
>
> Hi Jitendra,
> when attempts is updated after a '< 3' test, then I think that the test
here
> should be changed to 'if (attempts > 3)'
> tomash
>
[JB] Thanks for reviewing Tomas.
My bad, made some last minute changes to it. Will re-send the series.
- [PATCH v2 03/10] be2iscsi: Replace spin_unlock_bh with ... Jitendra Bhivare
- [PATCH v2 05/10] be2iscsi: Increase HDQ default queue s... Jitendra Bhivare
- [PATCH v2 04/10] scsi_transport_iscsi: Use flush_work i... Jitendra Bhivare
- [PATCH v2 10/10] be2iscsi: Update driver version Jitendra Bhivare
- [PATCH v2 09/10] be2iscsi: Update Copyright Jitendra Bhivare
- [PATCH v2 07/10] be2iscsi: Remove free_list for ASYNC h... Jitendra Bhivare
- [PATCH v2 06/10] be2iscsi: Use num_cons field in Rx CQE Jitendra Bhivare
- [PATCH v2 02/10] be2iscsi: Fix closing of connection Jitendra Bhivare
- Re: [PATCH v2 02/10] be2iscsi: Fix closing of conn... Tomas Henzl
- RE: [PATCH v2 02/10] be2iscsi: Fix closing of ... Jitendra Bhivare
- Re: [PATCH v2 00/10] be2iscsi: driver update 11.4.0.0 Martin K. Petersen

