From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thayne Harbaugh Date: Thu, 28 Oct 2004 14:23:46 +0000 Subject: Re: chicken/egg between pipefs and initramfs/hotplug Message-Id: <1098973426.1432.41.camel@tubarao> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-cu0WpYr4qFnG2NaD4TCj" List-Id: References: <1098729008.19348.80.camel@tubarao> <20041026162922.0e9f7f88.akpm@osdl.org> In-Reply-To: <20041026162922.0e9f7f88.akpm@osdl.org> To: Andrew Morton Cc: klibc@zytor.com, linux-kernel@vger.kernel.org, linux-hotplug-devel@lists.sourceforge.net --=-cu0WpYr4qFnG2NaD4TCj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sorry to take so long to reply. On Tue, 2004-10-26 at 16:29 -0700, Andrew Morton wrote: > Thayne Harbaugh wrote: > > > > It appears that linux/init/main.c:init() has a chicken/egg problem. > > Apparently modprobe and other programs need a pipe and pipefs isn't > > mounted until later on in do_basic_setup()/do_initcalls(). That means > > that linux/fs/pipe.c:static struct vfsmount *pipe_mnt; isn't > > initialized and blows up when it's derefernced in > > linux/fs/pipe.c:get_pipe_inode(). >=20 > That's a bit sad. Does this fix it? >=20 > --- 25/fs/pipe.c~a Tue Oct 26 16:28:44 2004 > +++ 25-akpm/fs/pipe.c Tue Oct 26 16:28:52 2004 > @@ -718,5 +718,5 @@ static void __exit exit_pipe_fs(void) > mntput(pipe_mnt); > } > =20 > -module_init(init_pipe_fs) > +fs_initcall(init_pipe_fs) > module_exit(exit_pipe_fs) > _ Works great, other than the omitted ';' for the fs_initcall(): --- fs/pipe.c.orig 2004-10-28 08:59:47.383192448 -0600 +++ fs/pipe.c 2004-10-28 08:57:07.746460920 -0600 @@ -718,5 +718,5 @@ mntput(pipe_mnt); } -module_init(init_pipe_fs) +fs_initcall(init_pipe_fs); module_exit(exit_pipe_fs) Thanks. --=20 Thayne Harbaugh Linux Networx --=-cu0WpYr4qFnG2NaD4TCj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBgQDysYFQl3A+qS0RAnRlAJ9F9n8XMSoL76DS9abHYwcCofM1nwCeOtK7 IGQmN1RXYcNgp/P/5RJkJ3I= =NSYs -----END PGP SIGNATURE----- --=-cu0WpYr4qFnG2NaD4TCj-- ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel