diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-09-23 14:11:04 -0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-07 13:51:11 +0200 |
commit | bff7c57c2f50dca7b5e320f499e0898c3fb8a9ff (patch) | |
tree | 0e7e8366851e1f33ad0d929fb5e78e1ae026ff93 /kernel/sys_ni.c | |
parent | a046f1a0d3e320cfee6bdac336416a537f49e7c6 (diff) | |
download | linux-bff7c57c2f50dca7b5e320f499e0898c3fb8a9ff.tar.bz2 |
futex: Simplify double_lock_hb()
We need to make sure that all requeue operations take the hash bucket
locks in the same order to avoid deadlock. Simplify the current
double_lock_hb implementation by making sure hb1 is always the
"smallest" bucket to avoid extra checks.
[André: Add commit description]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: André Almeida <andrealmeid@collabora.com>
Link: https://lore.kernel.org/r/20210923171111.300673-16-andrealmeid@collabora.com
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions