iscsi-target: Drop left-over bogus iscsi_np->tpg_np
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:27:06 +0000 (23:27 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:36 +0000 (23:32 -0800)
This patch drops the left-over iscsi_np->tpg_np pointer, now
that iser-target PI is able to dynamically allocate PI contexts
per I/O, instead of needing to determine support using a TPG
attribute with this bogus reference.

Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_tpg.c

index 302eb3b7871558bb2a1241fedc521e20efebf415..09a522bae222d190ec92e157a42f13d2e361da4a 100644 (file)
@@ -790,7 +790,6 @@ struct iscsi_np {
        void                    *np_context;
        struct iscsit_transport *np_transport;
        struct list_head        np_list;
-       struct iscsi_tpg_np     *tpg_np;
 } ____cacheline_aligned;
 
 struct iscsi_tpg_np {
index c3cb5c15efdaa4fe1e5ea2c4a90cd6eb0e167a15..9053a3c0c6e51675faf45bfbbfd990d48752f67d 100644 (file)
@@ -501,7 +501,6 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(
        init_completion(&tpg_np->tpg_np_comp);
        kref_init(&tpg_np->tpg_np_kref);
        tpg_np->tpg_np          = np;
-       np->tpg_np              = tpg_np;
        tpg_np->tpg             = tpg;
 
        spin_lock(&tpg->tpg_np_lock);