On Fri, Jul 04, 2025 at 07:46:00PM +0900, Damien Le Moal wrote: > Introduce the inline helper function ata_port_eh_scheduled() to test if > EH is pending (ATA_PFLAG_EH_PENDING port flag is set) or running > (ATA_PFLAG_EH_IN_PROGRESS port flag is set) for a port. Use this helper > in ata_port_wait_eh() and __ata_scsi_queuecmd() to replace the hardcoded > port flag tests. > > No functional changes. > > Signed-off-by: Damien Le Moal <dlemoal@xxxxxxxxxx> Reviewed-by: Niklas Cassel <cassel@xxxxxxxxxx>