Commit 3d6ac61d authored by Thomas Gleixner's avatar Thomas Gleixner

core: Do not disable interrupts on RT in kernel/users.c

Use the local_irq_*_nort variants to reduce latencies in RT. The code
is serialized by the locks. No need to disable interrupts.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent cf3d66ac
...@@ -416,11 +416,11 @@ void free_uid(struct user_struct *up) ...@@ -416,11 +416,11 @@ void free_uid(struct user_struct *up)
if (!up) if (!up)
return; return;
local_irq_save(flags); local_irq_save_nort(flags);
if (atomic_dec_and_lock(&up->__count, &uidhash_lock)) if (atomic_dec_and_lock(&up->__count, &uidhash_lock))
free_user(up, flags); free_user(up, flags);
else else
local_irq_restore(flags); local_irq_restore_nort(flags);
} }
struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid) struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)
......
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