commit | b37932a2988afdd932334774c6e7536f5f5e1f70 | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <peterz@infradead.org> | Thu Feb 27 19:43:59 2025 +0100 |
committer | Peter Zijlstra <peterz@infradead.org> | Sat Mar 01 19:51:16 2025 +0100 |
tree | 9377e2453f22ca64cae9c395759ef071d79e961c | |
parent | 44bcbe5284e76b0a4b74d43190d136d0ec0cb471 [diff] |
futex: Rework SET_SLOTS Let SET_SLOTS have precedence over default scaling; once user sets a size, stick with it. Notably, doing SET_SLOTS 0 will cause fph->hash_mask to be 0, which will cause __futex_hash() to return global hash buckets. Once in this state, it is impossible to recover, so disable SET_SLOTS. Also, let prctl() users wait-retry the rehash, such that return of prctl() means new size is in effect. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>