Re: [PATCH 12/14] lpfc: Fix create_association oops on unloading LPFC driver

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

 



On Sat,  7 Apr 2018 11:30:24 -0700
James Smart <jsmart2021@xxxxxxxxx> wrote:

> Driver unload isn't waiting for all outstanding nvme associations
> to terminate before clearing structures. In particular, it did not
> set dev_loss_tmo to 0 such that all associations are immediately
> terminated. Thus the transport would enter reconnect timeouts and
> reattempt reconnect to an nvme controller. The call makes a call
> into the driver to create hw queues for the controller which causes
> a NULL pointer reference.
> 
> Correct by changing the teardown process to change all dev_loss_tmo
> timeouts to 0 so that they are immediate. Now the teardown process
> initiates, the remote ports unregistered and delete callback made,
> and as the assocations are immediate upon remoteport unregister, the
> transport will not longer invoke the callbacks for a new controller.
> 
> Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx>
> Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx>
> ---
>  drivers/scsi/lpfc/lpfc_hbadisc.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 

Hmm. This seems to be a very circumspect way of deleting all
outstanding I/O...
Is there any guarantee that nvme_fc_set_remoteport_devloss() will
return only after all callbacks are invoked?

Cheers,

Hannes



[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