* [PATCH] nvmet_fc: correct broken add_port
@ 2017-12-21 16:43 James Smart
2017-12-22 7:23 ` Johannes Thumshirn
2017-12-29 9:41 ` [PATCH] " Christoph Hellwig
0 siblings, 2 replies; 5+ messages in thread
From: James Smart @ 2017-12-21 16:43 UTC (permalink / raw)
prior patch to remove the add_port reference also removed the saving
of the port pointer, which mean any io had no port pointer thus was
rejected. Basically nothing works.
Restore the saving of the port pointer.
Signed-off-by: James Smart <james.smart at broadcom.com>
---
this restores operation but if the targetport is removed, it will no
longer be functional if it comes back. I will be submitting a more
involved patch for this shortly
drivers/nvme/target/fc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c
index b652208cb37b..fc22415f84fa 100644
--- a/drivers/nvme/target/fc.c
+++ b/drivers/nvme/target/fc.c
@@ -2522,6 +2522,7 @@ nvmet_fc_add_port(struct nvmet_port *port)
list_for_each_entry(tgtport, &nvmet_fc_target_list, tgt_list) {
if ((tgtport->fc_target_port.node_name == traddr.nn) &&
(tgtport->fc_target_port.port_name == traddr.pn)) {
+ tgtport->port = port;
ret = 0;
break;
}
--
2.13.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] nvmet_fc: correct broken add_port
2017-12-21 16:43 [PATCH] nvmet_fc: correct broken add_port James Smart
@ 2017-12-22 7:23 ` Johannes Thumshirn
2017-12-22 15:50 ` James Smart
2017-12-29 9:41 ` [PATCH] " Christoph Hellwig
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Thumshirn @ 2017-12-22 7:23 UTC (permalink / raw)
On Thu, Dec 21, 2017@08:43:35AM -0800, James Smart wrote:
> prior patch to remove the add_port reference also removed the saving
> of the port pointer, which mean any io had no port pointer thus was
> rejected. Basically nothing works.
>
> Restore the saving of the port pointer.
>
> Signed-off-by: James Smart <james.smart at broadcom.com>
>
> ---
> this restores operation but if the targetport is removed, it will no
> longer be functional if it comes back. I will be submitting a more
> involved patch for this shortly
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>
But a Fixes: and/or Cc: <stable at vger.kernel.org> might have been a
good Idea as well.
--
Johannes Thumshirn Storage
jthumshirn at suse.de +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] nvmet_fc: correct broken add_port
2017-12-22 7:23 ` Johannes Thumshirn
@ 2017-12-22 15:50 ` James Smart
2017-12-22 16:41 ` Mike Snitzer
0 siblings, 1 reply; 5+ messages in thread
From: James Smart @ 2017-12-22 15:50 UTC (permalink / raw)
On 12/21/2017 11:23 PM, Johannes Thumshirn wrote:
> But a Fixes: and/or Cc: <stable at vger.kernel.org> might have been a
> good Idea as well.
>
Fixes perhaps.? The patch that introduced the issue
(a0b69cc8e5caff3cb6442dfa807f47b44e716aad) is only in nvme-4.16, so it
doesn't quite apply.
-- james
^ permalink raw reply [flat|nested] 5+ messages in thread
* nvmet_fc: correct broken add_port
2017-12-22 15:50 ` James Smart
@ 2017-12-22 16:41 ` Mike Snitzer
0 siblings, 0 replies; 5+ messages in thread
From: Mike Snitzer @ 2017-12-22 16:41 UTC (permalink / raw)
On Fri, Dec 22 2017 at 10:50am -0500,
James Smart <james.smart@broadcom.com> wrote:
> On 12/21/2017 11:23 PM, Johannes Thumshirn wrote:
> >But a Fixes: and/or Cc: <stable at vger.kernel.org> might have been a
> >good Idea as well.
> >
>
> Fixes perhaps.? The patch that introduced the issue
> (a0b69cc8e5caff3cb6442dfa807f47b44e716aad) is only in nvme-4.16, so
> it doesn't quite apply.
Right, a Fixes: reference is useful even if the Cc: stable isn't
relevant.
This fixes the issue I reported -- where I needed to revert commit
a0b69cc8e5 ("nvmet-fc: cleanup nvmet add_port/remove_port") to allow
nvme connect to work with fcloop.
Christoph, please feel free to add:
Fixes: a0b69cc8e5 ("nvmet-fc: cleanup nvmet add_port/remove_port")
Tested-by: Mike Snitzer <snitzer at redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] nvmet_fc: correct broken add_port
2017-12-21 16:43 [PATCH] nvmet_fc: correct broken add_port James Smart
2017-12-22 7:23 ` Johannes Thumshirn
@ 2017-12-29 9:41 ` Christoph Hellwig
1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-12-29 9:41 UTC (permalink / raw)
Thanks,
I've folded this into the patch introducing the problem.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-12-29 9:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21 16:43 [PATCH] nvmet_fc: correct broken add_port James Smart
2017-12-22 7:23 ` Johannes Thumshirn
2017-12-22 15:50 ` James Smart
2017-12-22 16:41 ` Mike Snitzer
2017-12-29 9:41 ` [PATCH] " Christoph Hellwig
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.