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: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2009-07-21 23:06:05 +02:00 committed by Alibek Omarov
parent 548112beae
commit 0aeae3fce2
1 changed files with 2 additions and 2 deletions

View File

@ -159,11 +159,11 @@ void free_uid(struct user_struct *up)
if (!up)
return;
local_irq_save(flags);
local_irq_save_nort(flags);
if (atomic_dec_and_lock(&up->__count, &uidhash_lock))
free_user(up, flags);
else
local_irq_restore(flags);
local_irq_restore_nort(flags);
}
struct user_struct *alloc_uid(kuid_t uid)