sched/wait: kill leftover bookmark logic in __wake_up_common()
The manual list head check and list_for_each_entry_safe_from() in
__wake_up_common() are leftovers from commit 2554db916586 ("sched/wait:
Break up long wake list walk").
This logic was later removed by commit 37acade0ce89 ("sched: remove
wait bookmarks") but the now-unnecessary list hacks were left behind.
Signed-off-by: Oleg Nesterov <oleg at redhat.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
sched/wait: remove the __add_wait_queue_*exclusive() helpers
Each has one or two special-case users. Open-code them there: set
WQ_FLAG_EXCLUSIVE and queue the entry directly, with a note on why the
caller doesn't use add_wait_queue_exclusive().
I think all cases (eventpoll, orangefs and ubifs) are unnecessary and
could just use the regular ordering, but I'll leave that to those
maintainers to sort out.
Cc: Oleg Nesterov <oleg at redhat.com>
Cc: Ingo Molnar <mingo at redhat.com>
Cc: Peter Zijlstra <peterz at infradead.org>
Cc: Juri Lelli <juri.lelli at redhat.com>
Cc: Vincent Guittot <vincent.guittot at linaro.org>
Cc: Alexander Viro <viro at zeniv.linux.org.uk> # eventpoll
Cc: Christian Brauner <brauner at kernel.org> # eventpoll
Cc: Jan Kara <jack at suse.cz> # eventpoll
Cc: Mike Marshall <hubcap at omnibond.com> # orangefs
[2 lines not shown]
sched/wait: remove __add_wait_queue_entry_tail()
__add_wait_queue() and __add_wait_queue_entry_tail() are now the same.
Cc: Oleg Nesterov <oleg at redhat.com>
Cc: Ingo Molnar <mingo at redhat.com>
Cc: Peter Zijlstra <peterz at infradead.org>
Cc: Juri Lelli <juri.lelli at redhat.com>
Cc: Vincent Guittot <vincent.guittot at linaro.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
sched/wait: always queue new waiters at the tail
Non-exclusive waiters have been added at the head and exclusive ones at
the tail, so that an exclusive wakeup stopping early still woke every
non-exclusive waiter.
That only matters for waiters that mix both kinds on one queue like
read() and poll() on a pipe - and even then it doesn't actually buy
anything but complexity and fragility of the code.
An exclusive reader consumes the event, the poller had nothing to see,
so there's no real point in keeping the two ordered.
The pointless ordering results in a special rule for everybody adding
themselves to the wait queue, and that rule has not been consistently
followed anyway (see for example do_wait_intr() and do_wait_intr_irq())
So just queue everyone in FIFO order. LIFO might be better for
throughput, but every time we've ever tried that optimization in real
[22 lines not shown]
Release check: ask the API with the token, and reject drafts itself (#705)
The unauthenticated releases API is rate limited per runner IP. In run
45708823276 every try got 403 although continuous-server was public,
so the job failed and continuous-desktop never published.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[libc++] Simplify the implementation of __is_reference_wrapper (#245963)
This avoids a few class template instantiations, reducing compile times
a bit.
[LowerAtomic] Preserve alignment when lowering atomicrmw (#246171)
lowerAtomicRMWInst created the load and store that replace an atomicrmw
with the ABI alignment of the type instead of the atomicrmw's alignment.
For example, NVPTXAtomicLower turns an i32 atomicrmw with align 2 on
local memory into a misaligned `ld.local.b32`/`st.local.b32`, which
faults on the GPU. lowerAtomicCmpXchgInst already uses the instruction's
alignment.
The first commit adds the tests with the current output.
Assisted-by: Claude Code (Claude Opus 5.5)
[ValueTracking][NFC] Prepare computeKnownFPClass before moving it to ValueTrackingFP.cpp (#244967)
Changes:
- `getShuffleDemandedElts`, `breakSelfRecursivePHI` and will be used by
both `ValueTracking.cpp` and `ValueTrackingFP.cpp`
- Moves `getShuffleDemandedElts` into `VectorUtils.cpp`
- `computeKnownFPClass` now call a public `computeKnownBits` overload
instead of a static/private overload. This change is NFC.
AI Disclosure:
I used Claude Opus 5.5 to help with the code changes.
[libc++] Remove _LIBCPP_HIDE_FROM_ABI from the private headers (#245965)
This is the fifth bulk-removal patch of `_LIBCPP_HIDE_FROM_ABI`. While
this is something we could do over time, actively removing the redundant
annotations significantly improves readability, and QoI.
This happens in a few patches to keep the size somewhat manageable.