From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: "Nicholas A. Bellinger"
<nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>,
Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
oren-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
michaelc-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org,
linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 05/11] IB/iser: Replace fastreg descriptor valid bool with indicators container
Date: Mon, 24 Feb 2014 10:27:56 +0200 [thread overview]
Message-ID: <530B028C.7060405@dev.mellanox.co.il> (raw)
In-Reply-To: <1393227000.22656.24.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
On 2/24/2014 9:30 AM, Nicholas A. Bellinger wrote:
> On Sun, 2014-02-23 at 22:53 -0800, Nicholas A. Bellinger wrote:
>> On Sun, 2014-02-23 at 14:19 +0200, Sagi Grimberg wrote:
>>> In T10-PI support we will have memory keys for protection
>>> buffers and signature transactions. We prefer to compact
>>> indicators rather than keeping multiple bools.
>>>
>>> This commit does not change any functionality.
>>>
>>> Signed-off-by: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>>> ---
>>> drivers/infiniband/ulp/iser/iscsi_iser.h | 8 ++++++--
>>> drivers/infiniband/ulp/iser/iser_memory.c | 4 ++--
>>> drivers/infiniband/ulp/iser/iser_verbs.c | 2 +-
>>> 3 files changed, 9 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
>>> index 5ffa92f..5f7dbfd 100644
>>> --- a/drivers/infiniband/ulp/iser/iscsi_iser.h
>>> +++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
>>> @@ -280,13 +280,17 @@ struct iser_device {
>>> enum iser_data_dir cmd_dir);
>>> };
>>>
>>> +enum iser_reg_indicator {
>>> + ISER_DATA_KEY_VALID = 1 << 0,
>>> +};
>>> +
>>> struct fast_reg_descriptor {
>>> struct list_head list;
>>> /* For fast registration - FRWR */
>>> struct ib_mr *data_mr;
>>> struct ib_fast_reg_page_list *data_frpl;
>>> - /* Valid for fast registration flag */
>>> - bool valid;
>>> + /* registration indicators container */
>>> + u8 reg_indicators;
>>> };
>>>
>>> struct iser_conn {
>>> diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c
>>> index 0e029fe..3edab18 100644
>>> --- a/drivers/infiniband/ulp/iser/iser_memory.c
>>> +++ b/drivers/infiniband/ulp/iser/iser_memory.c
>>> @@ -479,7 +479,7 @@ static int iser_fast_reg_mr(struct iscsi_iser_task *iser_task,
>>> return -EINVAL;
>>> }
>>>
>>> - if (!desc->valid) {
>>> + if (!(desc->reg_indicators & ISER_DATA_KEY_VALID)) {
>>> memset(&inv_wr, 0, sizeof(inv_wr));
>>> inv_wr.wr_id = ISER_FRWR_LI_WRID;
>>> inv_wr.opcode = IB_WR_LOCAL_INV;
>> This block doesn't apply either..
>>
>> ISER_FRWR_LI_WRID does not appear to be defined anywhere in v3.14-rc2
>> code..? Is this patch missing a new definition..?
> Er, missed the bit wrt:
>
> IB/iser: Suppress completion for fast registration work requests
>
> Applied along with ib_iser + ib_isert patches to target-pending/rdma-dif
>
> --nab
OK, I see you got the missing piece.
This fixes all your conflicts right (I verified it before myself)?
Sagi.
--
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:[~2014-02-24 8:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-23 12:19 [PATCH 00/11] T10-PI Initial support for iSER initiator Sagi Grimberg
[not found] ` <1393157974-24931-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-23 12:19 ` [PATCH 01/11] IB/iser: Avoid FRWR notation, use fastreg instead Sagi Grimberg
2014-02-23 12:19 ` [PATCH 09/11] SCSI/libiscsi: Add check_protection callback for transports Sagi Grimberg
2014-02-23 12:19 ` [PATCH 02/11] IB/iser: Push the desicion what memory key to use into fast_reg_mr routine Sagi Grimberg
2014-02-23 12:19 ` [PATCH 03/11] IB/iser: Move fast_reg_descriptor initialization to a function Sagi Grimberg
2014-02-23 12:19 ` [PATCH 04/11] IB/iser: Keep IB device attributes under iser_device Sagi Grimberg
2014-02-23 12:19 ` [PATCH 05/11] IB/iser: Replace fastreg descriptor valid bool with indicators container Sagi Grimberg
[not found] ` <1393157974-24931-6-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-24 6:53 ` Nicholas A. Bellinger
[not found] ` <1393224839.22656.19.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-02-24 7:30 ` Nicholas A. Bellinger
[not found] ` <1393227000.22656.24.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-02-24 8:27 ` Sagi Grimberg [this message]
2014-02-24 19:52 ` Nicholas A. Bellinger
2014-02-23 12:19 ` [PATCH 06/11] IB/iser: Introduce pi_enable, pi_guard module parameters Sagi Grimberg
2014-02-23 12:19 ` [PATCH 07/11] IB/iser: Initialize T10-PI resources Sagi Grimberg
2014-02-23 12:19 ` [PATCH 08/11] IB/iser: Support T10-PI operations Sagi Grimberg
[not found] ` <1393157974-24931-9-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-24 6:50 ` Nicholas A. Bellinger
2014-02-23 12:19 ` [PATCH 10/11] IB/iser: Implement check_protection Sagi Grimberg
2014-02-23 12:19 ` [PATCH 11/11] IB/iser: Publish T10-PI support to SCSI midlayer Sagi Grimberg
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=530B028C.7060405@dev.mellanox.co.il \
--to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=michaelc-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org \
--cc=nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org \
--cc=oren-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sagig-VPRAkNaXOzVWk0Htik3J/w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox