[sheepdog] [PATCH 02/11] sheep: fix comment of put_vnode_info

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Apr 16 09:24:30 CEST 2013


We can call this function in the worker threads because urcu atomics
guard vnode_info.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 98b916f..ee23588 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -148,11 +148,7 @@ struct vnode_info *get_vnode_info(void)
 	return grab_vnode_info(current_vnode_info);
 }
 
-/*
- * Release a reference to the current vnode information.
- *
- * Must be called from the main thread.
- */
+/* Release a reference to the current vnode information. */
 void put_vnode_info(struct vnode_info *vnode_info)
 {
 	if (vnode_info) {
-- 
1.8.1.3.566.gaa39828




More information about the sheepdog mailing list