From: Or Gerlitz <ogerlitz@mellanox.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>,
Michael Christie <michaelc@cs.wisc.edu>
Cc: "Moussa Ba (moussaba)" <moussaba@micron.com>,
"target-devel@vger.kernel.org" <target-devel@vger.kernel.org>,
Nicholas Bellinger <nab@daterainc.com>,
linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: CmdSN greather than MaxCmdSN protocol error in LIO Iser
Date: Tue, 12 Nov 2013 09:27:28 +0200 [thread overview]
Message-ID: <5281D860.9010605@mellanox.com> (raw)
In-Reply-To: <1384230893.12281.72.camel@haakon3.risingtidesystems.com>
On 12/11/2013 06:34, Nicholas A. Bellinger wrote:
> Once iscsi_conn_queue_work() is invoked here to start process context
> execution of iscsi_xmitworker() -> iscsi_data_xmit() code, AFAICT there
> is no logic in place within iscsi_data_xmit() to honor the last received
> MaxCmdSN.
>
> Or to put it another way: what is preventing iscsi_data_xmit() from
> completely draining both conn->cmdqueue + conn->requeue, even when the
> CmdSN window has potentially been closed again..?
Guys,
Note that the iser initiator transport uses the pass-through command
submission mode of libiscsi, that is
iscsi_conn_queue_work isn't called from queuecommand at all.
This is b/c we call iscsi_host_allocwith xmit_can_sleep = 0. Hence no
workqueue is used for the command processing/submission over the wire,
just a call toiscsi_prep_scsi_cmd_pdu and following that to iser's
xmit_task callbackwhich isiscsi_iser_task_xmit that calls
iser_send_command, etc.
Mike, Nic is not using the new locking framework patches for libiscsi,
as you know they are not upstream
yet...
Or.
next prev parent reply other threads:[~2013-11-12 7:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <697D97E420EE024FB7451B574CD4991BCA064554@NTXBOIMBX05.micron.com>
[not found] ` <1384204653.12281.7.camel@haakon3.risingtidesystems.com>
[not found] ` <1384216960.12281.24.camel@haakon3.risingtidesystems.com>
[not found] ` <1384217317.12281.26.camel@haakon3.risingtidesystems.com>
2013-11-12 1:31 ` CmdSN greather than MaxCmdSN protocol error in LIO Iser Nicholas A. Bellinger
2013-11-12 2:16 ` Nicholas A. Bellinger
2013-11-12 2:32 ` Michael Christie
2013-11-12 2:39 ` Michael Christie
2013-11-12 4:34 ` Nicholas A. Bellinger
2013-11-12 7:27 ` Or Gerlitz [this message]
2013-11-12 9:15 ` Nicholas A. Bellinger
2013-11-12 15:37 ` Mike Christie
2013-11-12 15:43 ` Mike Christie
2013-11-12 18:18 ` Moussa Ba (moussaba)
2013-11-12 19:46 ` Michael Christie
2013-11-12 19:48 ` Moussa Ba (moussaba)
2013-11-12 21:15 ` Nicholas A. Bellinger
2013-11-12 22:11 ` Moussa Ba (moussaba)
2013-11-12 22:14 ` Nicholas A. Bellinger
2013-11-12 22:15 ` Moussa Ba (moussaba)
2013-11-12 23:03 ` Moussa Ba (moussaba)
2013-11-13 1:51 ` Nicholas A. Bellinger
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=5281D860.9010605@mellanox.com \
--to=ogerlitz@mellanox.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=moussaba@micron.com \
--cc=nab@daterainc.com \
--cc=nab@linux-iscsi.org \
--cc=target-devel@vger.kernel.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.