Re: [PATCH v2] scsi: ufs: core: Do not hold any lock in ufshcd_hba_stop

From: Bart Van Assche
Date: Mon Dec 09 2024 - 14:13:43 EST


On 11/27/24 11:25 PM, Avri Altman wrote:
This change is motivated by Bart's suggestion in [1], which enables to
further reduce the scsi host lock usage in the ufs driver. The reason
why it make sense, because although the legacy interrupt is disabled by
some but not all ufshcd_hba_stop() callers, it is safe to nest
disable_irq() calls as it checks the irq depth.

[1] https://lore.kernel.org/linux-scsi/c58e4fce-0a74-4469-ad16-f1edbd670728@xxxxxxx/

Suggested-by: Bart Van Assche <bvanassche@xxxxxxx>
Signed-off-by: Avri Altman <avri.altman@xxxxxxx>

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