All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: Revert stop-on-failure with connect-all
@ 2019-04-09 20:51 James Smart
  2019-04-09 21:04 ` Keith Busch
  0 siblings, 1 reply; 4+ messages in thread
From: James Smart @ 2019-04-09 20:51 UTC (permalink / raw)


The patch that added special treatment for EALREADY connect failures
also changed the behavior on what happens if a discovery log contains
an entry that is not connectable by the system or host port. If it
encounters a log entry that can't be connected to, it will not attempt
to connect to any log entries beyond it. This can leave lots of devices
unconnected to.

Revert the stop-on-failure introduced by the previous patch.

Specifically, this failed for me on an FC array that had a discovery log
entry for a port that was not visible via zoning for the initiator
port being used.

Fixes: 1a922e0e121d7 ("connect-all: special treatment to EALREADY afetr write to /dev/nvme-fabrics"
Signed-off-by: James Smart <jsmart2021 at gmail.com>
CC: Eyal Ben David <eyalbe at il.ibm.com>
CC: Martin George <Martin.George at netapp.com>
---
 fabrics.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/fabrics.c b/fabrics.c
index 1a9a3fb..511de06 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -833,9 +833,12 @@ static int connect_ctrls(struct nvmf_disc_rsp_page_hdr *log, int numrec)
 			continue;
 		}
 
-		/* otherwise error */
-		ret = -instance;
-		break;
+		/*
+		 * don't error out. The Discovery Log may contain
+		 * devices that aren't necessarily connectable via
+		 * the system/host transport port. Let those items
+		 * fail and continue on to the next log element.
+		 */
 	}
 
 	return ret;
-- 
2.13.7

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] nvme-cli: Revert stop-on-failure with connect-all
  2019-04-09 20:51 [PATCH] nvme-cli: Revert stop-on-failure with connect-all James Smart
@ 2019-04-09 21:04 ` Keith Busch
  2019-04-09 21:25   ` James Smart
  0 siblings, 1 reply; 4+ messages in thread
From: Keith Busch @ 2019-04-09 21:04 UTC (permalink / raw)


On Tue, Apr 09, 2019@01:51:54PM -0700, James Smart wrote:
> The patch that added special treatment for EALREADY connect failures
> also changed the behavior on what happens if a discovery log contains
> an entry that is not connectable by the system or host port. If it
> encounters a log entry that can't be connected to, it will not attempt
> to connect to any log entries beyond it. This can leave lots of devices
> unconnected to.
> 
> Revert the stop-on-failure introduced by the previous patch.
> 
> Specifically, this failed for me on an FC array that had a discovery log
> entry for a port that was not visible via zoning for the initiator
> port being used.

Patch applied. I just tagged a release earlier this week, so let me know
if this is urgent enough to warrant a new tag.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] nvme-cli: Revert stop-on-failure with connect-all
  2019-04-09 21:04 ` Keith Busch
@ 2019-04-09 21:25   ` James Smart
  2019-04-09 21:38     ` Keith Busch
  0 siblings, 1 reply; 4+ messages in thread
From: James Smart @ 2019-04-09 21:25 UTC (permalink / raw)


On 4/9/2019 2:04 PM, Keith Busch wrote:
> On Tue, Apr 09, 2019@01:51:54PM -0700, James Smart wrote:
>> The patch that added special treatment for EALREADY connect failures
>> also changed the behavior on what happens if a discovery log contains
>> an entry that is not connectable by the system or host port. If it
>> encounters a log entry that can't be connected to, it will not attempt
>> to connect to any log entries beyond it. This can leave lots of devices
>> unconnected to.
>>
>> Revert the stop-on-failure introduced by the previous patch.
>>
>> Specifically, this failed for me on an FC array that had a discovery log
>> entry for a port that was not visible via zoning for the initiator
>> port being used.
> 
> Patch applied. I just tagged a release earlier this week, so let me know
> if this is urgent enough to warrant a new tag.
> 

I believe it is unfortunately.  It seems to be a fairly common thing.

-- james

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] nvme-cli: Revert stop-on-failure with connect-all
  2019-04-09 21:25   ` James Smart
@ 2019-04-09 21:38     ` Keith Busch
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Busch @ 2019-04-09 21:38 UTC (permalink / raw)


On Tue, Apr 09, 2019@02:25:47PM -0700, James Smart wrote:
> On 4/9/2019 2:04 PM, Keith Busch wrote:
> > Patch applied. I just tagged a release earlier this week, so let me know
> > if this is urgent enough to warrant a new tag.
> > 
> 
> I believe it is unfortunately.  It seems to be a fairly common thing.

Okay, done. There were only 2 other commits fixing trivial bugs since
the last release, so just tagged it with an additional minor number.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-09 21:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-09 20:51 [PATCH] nvme-cli: Revert stop-on-failure with connect-all James Smart
2019-04-09 21:04 ` Keith Busch
2019-04-09 21:25   ` James Smart
2019-04-09 21:38     ` Keith Busch

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.