Re: [PATCH v2] ns: do not block exit_task_namespaces() for a longtime

From: Kirill A. Shutemov
Date: Mon Jul 16 2012 - 17:03:52 EST


On Mon, Jul 16, 2012 at 06:09:24PM +0300, Kirill A. Shutemov wrote:
> I also move synchronize_rcu() inside free_nsproxy(). It fixes racy
> put_nsproxy() which calls free_nsproxy() without synchronize_rcu().
> I guess it was missed during switch to RCU (see cf7b708).

I was wrong here. No races. RCU protects task->ns_proxy, not ns_proxy
itself.
Sorry for misleading.

--
Kirill A. Shutemov

Attachment: signature.asc
Description: Digital signature