Re: [PATCH 5/9] scsi: arm: Fix eh_abort race against the interrupt handler

From: Praneeth Balasubramanian

Date: Sat Dec 05 2026 - 03:20:43 EST


On Sat, 05 Dec 2026 06:50:47 +0000, sashiko-bot@xxxxxxxxxx wrote:
> [Severity: Low]
> Should the Fixes tag reference 8fa728a26886 ("[SCSI] allow sleeping in
> ->eh_abort_handler()") instead of 1da177e4c3f4 ("Linux-2.6.12-rc2")?

Yes. Before that commit the midlayer called eh_abort_handler with
host_lock held and irqs off. v2 uses that Fixes tag.

> [Severity: Low]
> Could this comment name info->host_lock explicitly?

Yes. v2 names info->host_lock in the comment and the changelog. It also
says that fas216_eh_device_reset() and fas216_eh_bus_reset() take that
lock, and that fas216_intr() itself takes none, while some of its callees
take it around fas216_kick().

> [Severity: Medium]
> Does spin_lock_irqsave(&info->host_lock, flags) still race with
> fas216_intr() under CONFIG_PREEMPT_RT?

It does. On PREEMPT_RT the lock leaves interrupts on, and the handler
runs in a thread. The device and bus reset handlers have the same limit
today. Closing it needs the interrupt path to take info->host_lock, and
its callees already take it around fas216_kick(), so that is a larger
rework. These are single processor RiscPC boards, so I kept v2 to the
non-RT case and said so below the --- of the patch.