summaryrefslogtreecommitdiff
path: root/include/linux/wait.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-09-18 17:14:18 -0700
committerThomas Gleixner <tglx@kernel.org>2026-09-29 21:02:51 +0200
commitcefc1a24ace53c9b26f5adee1f60a439cc0d53a4 (patch)
tree761f8c3a051a1d1966934d0b39c7f4d29aaf25dc /include/linux/wait.h
parentd166a1cd901615280be050929e5a5c9e4d300a62 (diff)
aio: Use accessor for hrtimer_sleeper ->task field
The hrtimer_sleeper structure's ->task field is used as a flag to indicate that the associated hrtimer has expired. This means that the hrtimer handler can be storing to this field while other code is loading from it to check for expiry. Note that additional races appear for hrtimers that can be restarted, which could be argued to be a user error. However, that is no reason to let the compiler introduce additional confusion, and to this end, the hrtimer_sleeper_task_get() was introduced, use of which also has the benefit of avoiding open-code access to hrtimer_sleeper innards. KCSAN located this issue. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Christian Brauner (Amutable) <brauner@kernel.org> Acked-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20260919001428.3133388-2-paulmck@kernel.org
Diffstat (limited to 'include/linux/wait.h')
0 files changed, 0 insertions, 0 deletions