[patch-2.3.43-pre5] simple optimization of personality(2).

From: Tigran Aivazian (tigran@sco.COM)
Date: Wed Feb 09 2000 - 03:33:51 EST


Hi Linus,

This patch reduces the length of holding big kernel lock and saves one
initialization in personality(2) system call.

Regards,
Tigran.

--- exec_domain.c.0 Wed Feb 9 08:13:35 2000
+++ exec_domain.c Wed Feb 9 08:10:57 2000
@@ -103,12 +103,11 @@
         unsigned long old_personality;
         int ret;
 
- lock_kernel();
- ret = current->personality;
         if (personality == 0xffffffff)
- goto out;
+ return current->personality;
 
         ret = -EINVAL;
+ lock_kernel();
         it = lookup_exec_domain(personality);
         if (!it)
                 goto out;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:14 EST