Re: procfs bug (was: Re: bttv (or PCI subsystem?) still broken in 2.3.99-pre8)

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat May 13 2000 - 13:09:43 EST


Gerd Knorr writes:
> This patch kills the kernel, proc_kill_inodes is called with proc_mnt
> being NULL. Can someone who knows procfs better than me please fix it?

The problem is that the partition code (which calls device_init(), which
in turn calls various device routines) happens before procfs is
initialised. This means that any driver that uses procfs is likely
to go wrong.

The patch below places the partition initialisation at the end of the
filesystem initialisation, rather than towards the start:

--- linux.orig/fs/Makefile Wed Mar 1 11:38:54 2000
+++ linux/fs/Makefile Sat May 13 15:44:51 2000
@@ -21,7 +21,7 @@
                 nfsd nls devpts devfs adfs partitions qnx4 udf bfs cramfs \
                 openpromfs autofs4 ramfs
 
-SUB_DIRS := partitions
+SUB_DIRS :=
 
 ifeq ($(CONFIG_QUOTA),y)
 O_OBJS += dquot.o
@@ -332,5 +332,7 @@
   M_OBJS += binfmt_elf.o
   endif
 endif
+
+SUB_DIRS += partitions
 
 include $(TOPDIR)/Rules.make
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
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 : Mon May 15 2000 - 21:00:23 EST