From: Sagi Grimberg <sagi@grimberg.me>
To: Max Gurtovoy <mgurtovoy@nvidia.com>,
Kashyap Desai <kashyap.desai@broadcom.com>,
linux-rdma@vger.kernel.org
Cc: selvin.xavier@broadcom.com, andrew.gospodarek@broadcom.com,
Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: [PATCH RFC] IB/iser: add task reference counter for tx commands
Date: Sun, 28 Aug 2022 17:52:29 +0300 [thread overview]
Message-ID: <c2d7e7cb-d0f6-672c-a1c0-db170fff9cc8@grimberg.me> (raw)
In-Reply-To: <8288a63a-d708-4e41-78fb-e3ed7d6fd9c2@nvidia.com>
> Hi Kashyap Desai,
>
> Unfortunately, there is a wider problem in iser that we do the local
> invalidation if any, after we complete the iscsi task.
> So the right solution is to do the logic we have in NVMe/RDMA that
> checks if remote invalidation happened and if not, it does local
> invalidation.
> And the task is released after getting the send_completion and
> local_invalidation/remote invalidation.
>
> There is some infrastructure work needed to be done there.
>
> Sagi,
>
> Please remind me few things regarding the iSCSI bidir cmds.
>
> In case of bidir IO cmd, if we need to use a reg_mr for it - I see a
> potential problem there.
Not surprising.
> Is this scenario possible ?
There is no longer bidi support in scsi.
See patch: ae3d56d81507 ("scsi: remove bidirectional command support")
> I'm asking because if it is possible, so what happens in remote
> invalidation ? what key is invalidated ? the read_key or the write_key ?
> in ib_isert there is a priority to the read_key (is it by the spec ?).
The spec never addressed this. It wasn't well defined what to do with
remote invalidation for bidi commands.
> We don't consider this in the iser recv completion and the remote
> invalidation checker logic.
> If it's not possible we should re-design few components in the code and
> fix the issue that we do local_invalidation of cmd N during the send of
> cmd N + 1.
We shouldn't bother, no consumer of this is left.
prev parent reply other threads:[~2022-08-28 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 12:42 [PATCH RFC] IB/iser: add task reference counter for tx commands Kashyap Desai
2022-08-24 23:59 ` Max Gurtovoy
2022-08-25 12:07 ` Kashyap Desai
2022-08-28 14:52 ` Sagi Grimberg [this message]
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=c2d7e7cb-d0f6-672c-a1c0-db170fff9cc8@grimberg.me \
--to=sagi@grimberg.me \
--cc=andrew.gospodarek@broadcom.com \
--cc=jgg@nvidia.com \
--cc=kashyap.desai@broadcom.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mgurtovoy@nvidia.com \
--cc=selvin.xavier@broadcom.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox