Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301173

Re: [PATCH v9 06/13] task_isolation: add debug boot flag

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [PATCH v9 06/13] task_isolation: add debug boot flag
Date 2016-01-05 00:00 +0100
Message-ID <qNmgx-1m8-1@gated-at.bofh.it> (permalink)
References <qNk54-8oP-13@gated-at.bofh.it> <qNmgx-1m8-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 4 Jan 2016 14:34:44 -0500
Chris Metcalf <cmetcalf@ezchip.com> wrote:


> +#ifdef CONFIG_TASK_ISOLATION
> +void task_isolation_debug(int cpu)
> +{
> +	struct task_struct *p;
> +
> +	if (!task_isolation_possible(cpu))
> +		return;
> +
> +	rcu_read_lock();

What's the rcu_read_lock() for? I don't see what is being protected by
rcu here?

-- Steve

> +	p = cpu_curr(cpu);
> +	get_task_struct(p);
> +	rcu_read_unlock();
> +	task_isolation_debug_task(cpu, p);
> +	put_task_struct(p);
> +}
> +#endif
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v9 06/13] task_isolation: add debug boot flag Steven Rostedt <rostedt@goodmis.org> - 2016-01-05 00:00 +0100
  Re: [PATCH v9 06/13] task_isolation: add debug boot flag Chris Metcalf <cmetcalf@ezchip.com> - 2016-01-05 00:50 +0100
    Re: [PATCH v9 06/13] task_isolation: add debug boot flag Steven Rostedt <rostedt@goodmis.org> - 2016-01-05 14:50 +0100

csiph-web