From: Gabriel Krisman Bertazi <krisman@collabora.com>
To: Lee Duncan <LDuncan@suse.com>
Cc: "cleech\@redhat.com" <cleech@redhat.com>,
"martin.petersen\@oracle.com" <martin.petersen@oracle.com>,
"linux-scsi\@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"open-iscsi\@googlegroups.com" <open-iscsi@googlegroups.com>,
Bharath Ravi <rbharath@google.com>,
"kernel\@collabora.com" <kernel@collabora.com>,
"Dave Clausen" <dclausen@google.com>, Nick Black <nlb@google.com>,
Vaibhav Nagarnaik <vnagarnaik@google.com>,
Anatol Pomazau <anatol@google.com>,
Tahsin Erdogan <tahsin@google.com>,
Frank Mayhar <fmayhar@google.com>, Junho Ryu <jayr@google.com>,
Khazhismel Kumykov <khazhy@google.com>
Subject: Re: [PATCH] iscsi: Perform connection failure entirely in kernel space
Date: Mon, 09 Dec 2019 13:39:13 -0500 [thread overview]
Message-ID: <85h829l4xa.fsf@collabora.com> (raw)
In-Reply-To: <9865d3ff-676f-7502-d1a5-dd41cb940cd3@suse.com> (Lee Duncan's message of "Mon, 9 Dec 2019 18:29:14 +0000")
Lee Duncan <LDuncan@suse.com> writes:
> On 12/9/19 10:20 AM, Gabriel Krisman Bertazi wrote:
>> From: Bharath Ravi <rbharath@google.com>
>>
>> Connection failure processing depends on a daemon being present to (at
>> least) stop the connection and start recovery. This is a problem on a
>> multipath scenario, where if the daemon failed for whatever reason, the
>> SCSI path is never marked as down, multipath won't perform the
>> failover and IO to the device will be forever waiting for that
>> connection to come back.
>>
>> This patch implements an optional feature in the iscsi module, to
>> perform the connection failure inside the kernel. This way, the
>> failover can happen and pending IO can continue even if the daemon is
>> dead. Once the daemon comes alive again, it can perform recovery
>> procedures if applicable.
>
>
> I don't suppose you've tested how this plays with the daemon, when present?
Hello,
Yes, I did. It seemed to work properly over TCP.
The stop calls are serialized by the rx_mutex, whoever gets it first,
gets the job done. The second should return immediately since the socket
is no longer there.
What am I missing?
--
Gabriel Krisman Bertazi
next prev parent reply other threads:[~2019-12-09 18:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 18:20 [PATCH] iscsi: Perform connection failure entirely in kernel space Gabriel Krisman Bertazi
2019-12-09 18:29 ` Lee Duncan
2019-12-09 18:39 ` Gabriel Krisman Bertazi [this message]
2019-12-11 0:05 ` Mike Christie
2019-12-11 0:23 ` Mike Christie
2019-12-17 2:16 ` Khazhismel Kumykov
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=85h829l4xa.fsf@collabora.com \
--to=krisman@collabora.com \
--cc=LDuncan@suse.com \
--cc=anatol@google.com \
--cc=cleech@redhat.com \
--cc=dclausen@google.com \
--cc=fmayhar@google.com \
--cc=jayr@google.com \
--cc=kernel@collabora.com \
--cc=khazhy@google.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=nlb@google.com \
--cc=open-iscsi@googlegroups.com \
--cc=rbharath@google.com \
--cc=tahsin@google.com \
--cc=vnagarnaik@google.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.