Re: [PATCH] vfs: use RCU_INIT_POINTER when NULLing

From: Christoph Hellwig
Date: Sun May 01 2016 - 13:34:35 EST


On Sun, May 01, 2016 at 01:39:12AM +0530, Muhammad Falak R Wani wrote:
> It is always safe to use RCU_INIT_POINTER to NULL a pointer. This
> results in slightly smaller/faster code.

Just fix rcu_assign_pointer to do the right thing for a NULL
argument instead.