All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.