Re: [PATCH v8 25/31] elx: efct: LIO backend interface routines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/24/21 3:34 PM, Mike Christie wrote:
> Or could you have something like:
> 
> efct_dispatch_frame -> efct_dispatch_fcp_cmd -> efct_scsi_recv_cmd
> 
> running when this happening? Was there some place like here where
> efct_node->session was set to NULL and that's what we try to detect
> in efct_scsi_recv_cmd?

Oh yeah, I think if you can still have IO running from inside the
driver you want to move the target_remove_session call to _efct_tgt_node_free.

We will then handle the case where a cmd has passed efct_node_find and got a ref
to the efct_node but not yet reached target_init_cmd. When the cmd hits
target_init_cmd lio will return a failure, efct_dispatch_frame will drop its
ref, and then we will free the efct_node and lio session.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux