[Intel-wired-lan] [PATCH iwl-net] ice: use spin_lock_bh for Tx timestamp tracker lock
Keller, Jacob E
jacob.e.keller at intel.com
Tue May 30 21:12:28 UTC 2023
> -----Original Message-----
> From: Michal Schmidt <mschmidt at redhat.com>
> Sent: Tuesday, May 30, 2023 1:51 PM
> To: Keller, Jacob E <jacob.e.keller at intel.com>
> Cc: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>
> Subject: Re: [Intel-wired-lan] [PATCH iwl-net] ice: use spin_lock_bh for Tx
> timestamp tracker lock
>
> On Sat, May 27, 2023 at 12:16 AM Jacob Keller <jacob.e.keller at intel.com> wrote:
> > The Tx timestamp tracker lock is acquired during ice_ptp_tx_tstamp
> > which is now called from the ice_misc_intr_thread_fn(). As far as I can
> > understand, this thread function is run in softirq context, so it is
> > possible for the thread to interrupt another thread that is currently in
> > the critical section of this lock when using only spin_lock. This would
> > result in a deadlock.
>
> No, the thread_fn of a threaded IRQ does not run in softirq context.
> It runs in a kernel thread that has its own PID and everything. You
> can see IRQ threads in "ps ax" as "[irq/<number>-<name>]", you can
> modify their scheduling priority, etc.
>
> Michal
>
Ah.. Hm. I must have misunderstood some of the doc I was reading about in the request_threaded_irq. Ok. We can disregard this patch then.
Thanks,
Jake
More information about the Intel-wired-lan
mailing list