From: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
To: "Nicholas A. Bellinger" <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
Cc: target-devel
<target-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
SWise OGC
<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
Sagi Grimberg <sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
Subject: Re: [PATCH 0/3] target: Fix queue-full callback error signaling
Date: Thu, 23 Mar 2017 11:06:03 +0530 [thread overview]
Message-ID: <20170323053602.GA2323@chelsio.com> (raw)
In-Reply-To: <1477891554-26222-1-git-send-email-nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
On Monday, October 10/31/16, 2016 at 10:55:51 +0530, Nicholas A. Bellinger wrote:
> From: Nicholas Bellinger <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
Hi Nicholas,
This patch series fixes the post failures due to Send Queue overflow when
tested along with Sagi's "iser-target: avoid posting a recv buffer twice", which
goes on top of these 3 patches.
Combined patches series(Nicholas's, Sagi's) works fine.
Tested with iWARP iser.
As these changes are critical for devices with lower sg resources, hoping this
series will be queued for next RC.
Reviewed-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
Tested-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
Thanks,
Bharat.
>
> Hi folks,
>
> This series contains target-core queue-full + iscsi-target
> callback fixes for a bug reported by Steve and Potnuri
> during recent v4.8.y iWARP/iser-target testing.
>
> The first patch fixes target-core queue-full handling response
> leaks with non -EAGAIN / -ENOMEM errors. It uses a new state
> TRANSPORT_COMPLETE_QF_ERR to internally generate CHECK_CONDITION
> for unknown fabric callback errors, to avoid attempting retry
> of fabric data-transfer callbacks for this special case.
>
> This means all non -EAGAIN / -ENOMEM fabric callback errors
> during target_core_fabric_ops for:
>
> *) ->write_pending()
> *) ->queue_data_in()
> *) ->queue_status()
>
> will result in CHECK_CONDITION + LOGICAL_UNIT_COMMUNICATION_FAILURE,
> if no non-zero se_cmd->scsi_status was previously set.
> It also means target-core ->queue_status() errors retry indefinately,
> or until session shutdown explicitly stops outstanding I/O.
>
> The remaining changes are for propagating iscsit_transport
> response failure back to target-core queue-full, and updating
> iser-target to propagate isert_rdma_rw_ctx_post() errors from
> RDMA R/W API back to target-core as well.
>
> Please review.
>
> --nab
>
> Nicholas Bellinger (3):
> target: Fix unknown fabric callback queue-full errors
> iscsi-target: Propigate queue_data_in + queue_status errors
> iser-target: Fix queue-full response handling
>
> drivers/infiniband/ulp/isert/ib_isert.c | 53 +++++++++-----
> drivers/target/iscsi/iscsi_target.c | 3 +-
> drivers/target/iscsi/iscsi_target_configfs.c | 13 ++--
> drivers/target/iscsi/iscsi_target_util.c | 5 +-
> drivers/target/iscsi/iscsi_target_util.h | 2 +-
> drivers/target/target_core_transport.c | 102
> ++++++++++++++++++---------
> include/target/target_core_base.h | 1 +
> 7 files changed, 114 insertions(+), 65 deletions(-)
>
> --
> 1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-03-23 5:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 5:25 [PATCH 0/3] target: Fix queue-full callback error signaling Nicholas A. Bellinger
2016-10-31 5:25 ` [PATCH 1/3] target: Fix unknown fabric callback queue-full errors Nicholas A. Bellinger
2016-10-31 5:25 ` [PATCH 2/3] iscsi-target: Propigate queue_data_in + queue_status errors Nicholas A. Bellinger
[not found] ` <1477891554-26222-1-git-send-email-nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
2016-10-31 5:25 ` [PATCH 3/3] iser-target: Fix queue-full response handling Nicholas A. Bellinger
2017-03-23 5:36 ` Potnuri Bharat Teja [this message]
2017-03-31 4:32 ` [PATCH 0/3] target: Fix queue-full callback error signaling Nicholas A. Bellinger
2017-04-03 6:23 ` Potnuri Bharat Teja
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=20170323053602.GA2323@chelsio.com \
--to=bharat-ut6up61k2wzbdgjk7y7tuq@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org \
--cc=sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org \
--cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
--cc=target-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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.