Re: [PATCH v2] scsi: lpfc: Add rport validation in lpfc_dev_loss_tmo_callbk
From: Justin Tee
Date: Tue Jun 30 2026 - 15:12:27 EST
Hi Vaibhav,
1.) This patch looks like it was rebased on top of the first version of this patch instead of off the tree.
2.) lpfc_dev_loss_tmo_callbk is the .dev_loss_tmo_callbk routine for scsi transport layer to call into our driver when dev_loss_tmo event is detected. A null ndlp->vport in lpfc_dev_loss_tmo_callbk is somewhat unexpected. Rather than checking for a stale pointer, it is more likely that an ndlp kref accounting race caused the vport ptr to be freed before lpfc_dev_loss_tmo_callbk was called.
Is it possible to share the vmcore’s dmesg.txt file so that we may examine the root cause of the stale ndlp->vport ptr?
Regards,
Justin