mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
8abc718de6
commit
107818e2da
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue