diff options
author | Hannes Reinecke <hare@suse.de> | 2016-07-19 15:01:55 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-07-20 22:27:05 +0200 |
commit | 107818e2dad943ec357f6fdfa70377317a142d9d (patch) | |
tree | ed349882de32dfc2a02ee19cf6e37dfdf2a83e0e /drivers/target/tcm_fc | |
parent | iscsi-target: Fix panic when adding second TCP connection to iSCSI session (diff) | |
download | linux-107818e2dad943ec357f6fdfa70377317a142d9d.tar.xz linux-107818e2dad943ec357f6fdfa70377317a142d9d.zip |
tcm_fc: set and unset FCP_SPPF_TARG_FCN
When registering and unregistering as an target port we should
be setting the FC-4 service params correctly.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index f5186a744399..6ffbb603d912 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c @@ -91,6 +91,7 @@ static void ft_tport_delete(struct ft_tport *tport) ft_sess_delete_all(tport); lport = tport->lport; + lport->service_params &= ~FCP_SPPF_TARG_FCN; BUG_ON(tport != lport->prov[FC_TYPE_FCP]); RCU_INIT_POINTER(lport->prov[FC_TYPE_FCP], NULL); @@ -110,6 +111,7 @@ void ft_lport_add(struct fc_lport *lport, void *arg) { mutex_lock(&ft_lport_lock); ft_tport_get(lport); + lport->service_params |= FCP_SPPF_TARG_FCN; mutex_unlock(&ft_lport_lock); } |