summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-07-27 14:36:14 +0100
committerMark Brown <broonie@kernel.org>2026-07-27 14:36:14 +0100
commit1004a2505f28f7d5ff9e7f7042a30da082c6aff8 (patch)
tree218c4f812f06452ae39e1850ae1c305ca0375902 /net
parent009da28929f8dceb81c27dcfd6222b3e1c655509 (diff)
parent5c20b6ab59580182b3179aa33403a14738873c72 (diff)
downloadlinux-next-1004a2505f28f7d5ff9e7f7042a30da082c6aff8.tar.gz
linux-next-1004a2505f28f7d5ff9e7f7042a30da082c6aff8.zip
Merge branch 'non-rcu/next' of https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
Diffstat (limited to 'net')
-rw-r--r--net/core/pktgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 5403a9f61178..cefed2a9caad 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2345,11 +2345,11 @@ static void spin(struct pktgen_dev *pkt_dev, ktime_t spin_until)
set_current_state(TASK_INTERRUPTIBLE);
hrtimer_sleeper_start_expires(&t, HRTIMER_MODE_ABS);
- if (likely(t.task))
+ if (likely(hrtimer_sleeper_task_get(&t)))
schedule();
hrtimer_cancel(&t.timer);
- } while (t.task && pkt_dev->running && !signal_pending(current));
+ } while (hrtimer_sleeper_task_get(&t) && pkt_dev->running && !signal_pending(current));
__set_current_state(TASK_RUNNING);
end_time = ktime_get();
}