[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1313526586.3436.188.camel@mfleming-mobl1.ger.corp.intel.com>
Date: Tue, 16 Aug 2011 21:29:46 +0100
From: Matt Fleming <matt@...sole-pimps.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: linux-kernel@...r.kernel.org, Ian Kent <raven@...maw.net>
Subject: Re: [PATCH 37/41] autofs4: Use set_current_blocked()
On Tue, 2011-08-16 at 19:47 +0200, Oleg Nesterov wrote:
> On 08/11, Matt Fleming wrote:
> >
> > As described in e6fa16ab ("signal: sigprocmask() should do
> > retarget_shared_pending()") the modification of current->blocked is
> > incorrect as we need to check whether the signal we're about to block
> > is pending in the shared queue.
>
> ACK.
>
>
> cough, can't resist...
>
> > @@ -458,21 +458,16 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
> > */
> > if (wq->name.name) {
> > /* Block all but "shutdown" signals while waiting */
> > - sigset_t oldset;
> > + sigset_t oldset, blocked;
> > unsigned long irqflags;
> >
> > - spin_lock_irqsave(¤t->sighand->siglock, irqflags);
> > oldset = current->blocked;
> > - siginitsetinv(¤t->blocked, SHUTDOWN_SIGS & ~oldset.sig[0]);
> > - recalc_sigpending();
> > - spin_unlock_irqrestore(¤t->sighand->siglock, irqflags);
> > + siginitsetinv(&blocked, SHUTDOWN_SIGS & ~oldset.sig[0]);
> > + set_current_blocked(&blocked);
> >
> > wait_event_interruptible(wq->queue, wq->name.name == NULL);
> > -
> > - spin_lock_irqsave(¤t->sighand->siglock, irqflags);
> > - current->blocked = oldset;
> > - recalc_sigpending();
> > - spin_unlock_irqrestore(¤t->sighand->siglock, irqflags);
> > +
>
> this adds the trailing whitespaces ;)
Whoops! I fixed that and added your Acked-by. Thanks!
--
Matt Fleming, Intel Open Source Technology Center
--
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