From: Andrew Morton <akpm@osdl.org>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] export [__]set_special_pids()
Date: Wed, 1 Oct 2003 22:09:14 -0700 [thread overview]
Message-ID: <20031001220914.7664d6e3.akpm@osdl.org> (raw)
In-Reply-To: <20031001214132.5070b6b5.rddunlap@osdl.org>
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
> EXPORT [__]set_special_pids(); Ingo added these
> in include/linux/sched.h but didn't export them;
> jffs uses set_special_pids();
jffs seems to be trying to do daemonize()-by-hand. It would be better for
it to get its act together and just call daemonize().
Is anyone actively testing and using jffs in 2.6? How does one get it
going with blkmtd??
diff -puN fs/jffs/intrep.c~jffs-use-daemonize fs/jffs/intrep.c
--- 25/fs/jffs/intrep.c~jffs-use-daemonize 2003-10-01 22:01:21.000000000 -0700
+++ 25-akpm/fs/jffs/intrep.c 2003-10-01 22:02:26.000000000 -0700
@@ -3337,18 +3337,16 @@ jffs_garbage_collect_thread(void *ptr)
int result = 0;
D1(int i = 1);
+ daemonize("jffs_gcd");
+
c->gc_task = current;
lock_kernel();
- exit_mm(c->gc_task);
-
- set_special_pids(1, 1);
init_completion(&c->gc_thread_comp); /* barrier */
spin_lock_irq(¤t->sighand->siglock);
siginitsetinv (¤t->blocked, sigmask(SIGHUP) | sigmask(SIGKILL) | sigmask(SIGSTOP) | sigmask(SIGCONT));
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
- strcpy(current->comm, "jffs_gcd");
D1(printk (KERN_NOTICE "jffs_garbage_collect_thread(): Starting infinite loop.\n"));
_
next prev parent reply other threads:[~2003-10-02 5:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 4:41 Randy.Dunlap
2003-10-02 5:09 ` Andrew Morton [this message]
2003-10-02 16:23 ` Randy.Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031001220914.7664d6e3.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®