Re: [PATCH v12 05/21] futex: Create hb scopes
From: Sebastian Andrzej Siewior
Date: Fri May 16 2025 - 08:21:07 EST
On 2025-05-06 20:45:06 [-0300], André Almeida wrote:
> > --- a/kernel/futex/core.c
> > +++ b/kernel/futex/core.c
> > @@ -957,50 +956,54 @@ static void exit_pi_state_list(struct task_struct *curr)
> > next = head->next;
> > pi_state = list_entry(next, struct futex_pi_state, list);
> > key = pi_state->key;
> > - hb = futex_hash(&key);
> > + if (1) {
>
> Couldn't those explict scopes be achive without the if (1), just {}?
I don't see why not. I guess it looks nicer that way.
> > + struct futex_hash_bucket *hb;
>
Sebastian