* question on pivot_root and kernel threads
@ 2004-02-10 16:49 Chris Friesen
0 siblings, 0 replies; only message in thread
From: Chris Friesen @ 2004-02-10 16:49 UTC (permalink / raw)
To: Linux kernel
I've got an embedded system that we're trying to move from 2.4.18 to
2.4.22 (which involves a userspace upgrade as well). It netboots with
an initrd, and then at startup converts it to a tmpfs, unmounts the
original ramdisk, and frees the memory.
With 2.4.22 suddenly it started complaining about being unable to
unmount the original ramdisk. After some digging, it seems that the
kernel threads (keventd, ksoftirqd_CPU0, kswapd, bdflush, kupdated, and
mtdblockd) are starting up with stdin/stdout/stderr set to /dev/console
in the original ramdisk. When I do the pivot_root so that the original
ramdisk is mounted at "/mnt", I end up with a bunch of references to
"/mnt/dev/console", and I can't unmount "/mnt" since the refcount is
nonzero.
At a guess, its related to this thread:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=hpYn.1fz.21%40gated-at.bofh.it
Did this ever get resolved properly?
Thanks,
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-10 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 16:49 question on pivot_root and kernel threads Chris Friesen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.