[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110816194427.GA6602@redhat.com>
Date: Tue, 16 Aug 2011 21:44:27 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Matt Fleming <matt@...sole-pimps.org>
Cc: linux-kernel@...r.kernel.org, Tejun Heo <tj@...nel.org>
Subject: [PATCH 0/1] kthreads: allow_signal: don't play with ->blocked
On 08/16, Oleg Nesterov wrote:
>
> > int allow_signal(int sig)
> > {
> > + sigset_t blocked;
> > +
> > if (!valid_signal(sig) || sig < 1)
> > return -EINVAL;
> >
> > spin_lock_irq(¤t->sighand->siglock);
> > /* This is only needed for daemonize()'ed kthreads */
>
> Exactly. And nowadays the daemonize()'ed kthreads should not play
> with allow_signal().
>
> And more, I think it is the time to kill daemonize(). Contrary to
> what /bin/grep thinks, it has only one user.
No, daemonize() has no users which actually need it.
Imho we should deprecate it, it has no users after the patches I sent.
> In short: this code in allow_signal() should die.
Yes.
To clarify: this change breaks drivers/staging/rtl8712/, but I belive
it is wrong and should be fixed. I have already sent the patch.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists