[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7899.1283259751@redhat.com>
Date: Tue, 31 Aug 2010 14:02:31 +0100
From: David Howells <dhowells@...hat.com>
To: paulmck@...ux.vnet.ibm.com
Cc: dhowells@...hat.com, linux-kernel@...r.kernel.org, mingo@...e.hu,
laijs@...fujitsu.com, dipankar@...ibm.com,
akpm@...ux-foundation.org, mathieu.desnoyers@...ymtl.ca,
josh@...htriplett.org, dvhltc@...ibm.com, niv@...ibm.com,
tglx@...utronix.de, peterz@...radead.org, rostedt@...dmis.org,
Valdis.Kletnieks@...edu, eric.dumazet@...il.com, jslaby@...e.cz,
jmorris@...ei.org
Subject: Re: [PATCH RFC] pid: make setpgid() system call use RCU read-side critical section
Paul E. McKenney <paulmck@...ux.vnet.ibm.com> wrote:
> write_lock_irq(&tasklist_lock);
>
> err = -ESRCH;
> + rcu_read_lock();
> ...
> + rcu_read_unlock();
> write_unlock_irq(&tasklist_lock);
I would generally put the rcu lock outside the IRQ disabled section on the
basis that it's better to keep the amount of time we have interrupts disabled
shortest.
> Located-by: Andrew Morton <akpm@...ux-foundation.org>
'Reported-by' might be more consistent with what others use.
David
--
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