[PATCH v1] ufs: core: Avoid IRQ thread wakeup during active UIC command

Peter Wang (王信友) peter.wang at mediatek.com
Wed Mar 4 19:27:20 PST 2026


On Wed, 2026-03-04 at 08:43 -0600, Bart Van Assche wrote:
> A context switch takes somewhere between 1 and 10 microseconds.
> That is several orders of magnitude below the UIC command timeout.
> Something else must be causing the observed UIC timeouts.
> 
> Thanks,
> 
> Bart.

Hi Bart,

The main reason is not context switch time.
The problem is that a threaded IRQ handler can be preempted
by a regular IRQ.
When the system is busy, for example during kernel boot,
there are many other module IRQs present in the system.

Thanks
Peter


More information about the Linux-mediatek mailing list