diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-21 23:06:05 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-02-15 10:32:38 -0600 |
commit | acbfb7273783ae85db66556649c1c729eadb6936 (patch) | |
tree | 3024a8342853515c9d6210d2dc13a84d067581ed /kernel/user.c | |
parent | 2df33b929317bb8a4686ceaa61114b6dc45d6b2a (diff) |
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>
Diffstat (limited to 'kernel/user.c')
-rw-r--r-- | kernel/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user.c b/kernel/user.c index 71dd2363ab0f..b831e51c3489 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -129,11 +129,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(struct user_namespace *ns, uid_t uid) |