Re: [PATCH] scsi: qedi: Initialize callback state before registration

From: Martin K. Petersen (Oracle)

Date: Mon Oct 05 2026 - 22:44:34 EST


On Thu, 10 Sep 2026 17:24:05 +0800, Runyu Xiao wrote:

> qedi_get_protocol_tlv_data() can be called asynchronously by QED after
> qedi_ops->register_ops(). It takes stats_lock and reads ll2_mtu, but
> __qedi_probe() currently registers the callback before initializing the
> mutex and assigning the default MTU on the normal probe path.
>
> Initialize the callback-visible state before registering qedi_cb_ops. Keep
> the recovery path from reinitializing state because it reuses the existing
> qedi context.
>
> [...]

Applied to 7.3/scsi-fixes, thanks!

[1/1] scsi: qedi: Initialize callback state before registration
https://git.kernel.org/mkp/scsi/c/85de8b3a5eaa

--
Martin K. Petersen