From: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
To: Tomas Henzl <thenzl@redhat.com>, cleech@redhat.com, lduncan@suse.com
Cc: linux-scsi@vger.kernel.org
Subject: RE: [PATCH v2 02/10] be2iscsi: Fix closing of connection
Date: Fri, 24 Mar 2017 13:54:29 +0530 [thread overview]
Message-ID: <00e40e9717ff37125d0b88d2ca3517ce@mail.gmail.com> (raw)
In-Reply-To: <cd622545-9b55-4be6-4130-bf7f2fc00abb@redhat.com>
> > + 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.
next prev parent reply other threads:[~2017-03-24 8:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 3:24 [PATCH v2 00/10] be2iscsi: driver update 11.4.0.0 Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 01/10] be2iscsi: Check tag in beiscsi_mccq_compl_wait Jitendra Bhivare
2017-03-23 17:00 ` Tomas Henzl
2017-03-16 3:24 ` [PATCH v2 02/10] be2iscsi: Fix closing of connection Jitendra Bhivare
2017-03-23 16:45 ` Tomas Henzl
2017-03-24 8:24 ` Jitendra Bhivare [this message]
2017-03-16 3:24 ` [PATCH v2 03/10] be2iscsi: Replace spin_unlock_bh with spin_lock Jitendra Bhivare
2017-03-23 17:03 ` Tomas Henzl
2017-03-16 3:24 ` [PATCH v2 04/10] scsi_transport_iscsi: Use flush_work in iscsi_remove_session Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 05/10] be2iscsi: Increase HDQ default queue size Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 06/10] be2iscsi: Use num_cons field in Rx CQE Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 07/10] be2iscsi: Remove free_list for ASYNC handles Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 08/10] be2iscsi: Check size before copying ASYNC handle Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 09/10] be2iscsi: Update Copyright Jitendra Bhivare
2017-03-16 3:24 ` [PATCH v2 10/10] be2iscsi: Update driver version Jitendra Bhivare
2017-03-23 14:06 ` [PATCH v2 00/10] be2iscsi: driver update 11.4.0.0 Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00e40e9717ff37125d0b88d2ca3517ce@mail.gmail.com \
--to=jitendra.bhivare@broadcom.com \
--cc=cleech@redhat.com \
--cc=lduncan@suse.com \
--cc=linux-scsi@vger.kernel.org \
--cc=thenzl@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.