[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <666ece766920de01a9de6b79aa7eb3ace3f9c3a3.1395182132.git.monamagarwal123@gmail.com>
Date: Wed, 19 Mar 2014 04:21:42 +0530
From: Monam Agarwal <monamagarwal123@...il.com>
To: netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, eddie.wai@...adcom.com,
paulmck@...ux.vnet.ibm.com
Subject: [PATCH 9/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)
Signed-off-by: Monam Agarwal <monamagarwal123@...il.com>
---
drivers/vhost/test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c
index fc9a1d7..82b3744 100644
--- a/drivers/vhost/test.c
+++ b/drivers/vhost/test.c
@@ -128,7 +128,7 @@ static void *vhost_test_stop_vq(struct vhost_test *n,
mutex_lock(&vq->mutex);
private = rcu_dereference_protected(vq->private_data,
lockdep_is_held(&vq->mutex));
- rcu_assign_pointer(vq->private_data, NULL);
+ RCU_INIT_POINTER(vq->private_data, NULL);
mutex_unlock(&vq->mutex);
return private;
}
--
1.7.9.5
--
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