Commit 11fbe6cd authored by Thomas Gleixner's avatar Thomas Gleixner

posix-timers: Remove pointless irqsafe from hash_lock

All usage of hash_lock is in thread context. No point in using
spin_lock_irqsave()/irqrestore() for a single usage site.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.249063953@linutronix.de
parent 72786ff2
...@@ -471,10 +471,9 @@ static void k_itimer_rcu_free(struct rcu_head *head) ...@@ -471,10 +471,9 @@ static void k_itimer_rcu_free(struct rcu_head *head)
static void release_posix_timer(struct k_itimer *tmr, int it_id_set) static void release_posix_timer(struct k_itimer *tmr, int it_id_set)
{ {
if (it_id_set) { if (it_id_set) {
unsigned long flags; spin_lock(&hash_lock, flags);
spin_lock_irqsave(&hash_lock, flags);
hlist_del_rcu(&tmr->t_hash); hlist_del_rcu(&tmr->t_hash);
spin_unlock_irqrestore(&hash_lock, flags); spin_unlock(&hash_lock, flags);
} }
put_pid(tmr->it_pid); put_pid(tmr->it_pid);
sigqueue_free(tmr->sigq); sigqueue_free(tmr->sigq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment