[patch-2.3.99-pre3] optimized sysfs(2)

From: Tigran Aivazian (tigran@aivazian.fsnet.co.uk)
Date: Mon Mar 27 2000 - 05:47:15 EST


Hi Linus,

I noticed that file_systems is now protected by a spinlock of its own, in
particular fs_index()/fs_name()/fs_maxindex() are safe and therefore
sys_sysfs() does not need BKL anymore.

Here is the patch:

Thanks,
Tigran.

--- super.c.0 Mon Mar 27 11:41:37 2000
+++ super.c Mon Mar 27 11:42:10 2000
@@ -192,7 +192,6 @@
 {
         int retval = -EINVAL;
 
- lock_kernel();
         switch (option) {
                 case 1:
                         retval = fs_index((const char *) arg1);
@@ -206,7 +205,6 @@
                         retval = fs_maxindex();
                         break;
         }
- unlock_kernel();
         return retval;
 }
 

-
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 : Fri Mar 31 2000 - 21:00:19 EST