Re: [PATCH v2] scsi: ufs: core: disable exception work before removing hwmon

From: Bart Van Assche

Date: Sun Nov 29 2026 - 11:38:07 EST


On 11/26/26 11:25 PM, Yaohan Li wrote:
> Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support")
> Cc: stable@xxxxxxxxxxxxxxx # v6.10+

The Fixes tag looks inaccurate to me. Commit e88e2d32200a added
ufs_hwmon_probe() and ufs_hwmon_remove(), but did not touch
ufshcd_exception_event_handler(). Calling ufs_hwmon_notify_event() from
eeh_work was introduced in the next commit:

Fixes: 322c4b29ee1f ("scsi: ufs: core: Add temperature notification exception handling")

More generally, the missing teardown of hba->eeh_work in ufshcd_remove()
goes back to commit 66ec6d59407b ("[SCSI] ufs: Add support for host
assisted background operations"), as eeh_work can also outlive
ufshcd_remove() even without hwmon.

The code change itself looks good to me. Hence:

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>