mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
i40e: Fix preempt count leak in napi poll tracepoint
Using get_cpu() in the tracepoint assignment causes an obvious preempt
count leak because nothing invokes put_cpu() to undo it:
softirq: huh, entered softirq 3 NET_RX with preempt_count 00000100, exited with 00000101?
This clearly has seen a lot of testing in the last 3+ years...
Use smp_processor_id() instead.
Fixes: 6d4d584a7e ("i40e: Add i40e_napi_poll tracepoint")
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org
Reviewed-by: Joe Damato <joe@dama.to>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
a9c354e656
commit
4b3d54a85b
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ TRACE_EVENT(i40e_napi_poll,
|
|||
__entry->rx_clean_complete = rx_clean_complete;
|
||||
__entry->tx_clean_complete = tx_clean_complete;
|
||||
__entry->irq_num = q->irq_num;
|
||||
__entry->curr_cpu = get_cpu();
|
||||
__entry->curr_cpu = smp_processor_id();
|
||||
__assign_str(qname);
|
||||
__assign_str(dev_name);
|
||||
__assign_bitmask(irq_affinity, cpumask_bits(&q->affinity_mask),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue