Re: list_head and lock?

2013-11-18 Thread Paul E. McKenney
On Sun, Nov 17, 2013 at 05:48:14PM -0800, anish singh wrote: > On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 wrote: > > when we delete,add,search,amend the list_head,should we use spinlock > > or rcu in case of conflicit to list_head??? > There is no implicit locking when we use 'list' api's.You should

Re: list_head and lock?

2013-11-18 Thread Paul E. McKenney
On Sun, Nov 17, 2013 at 05:48:14PM -0800, anish singh wrote: On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 bonben1...@gmail.com wrote: when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list'

Re: list_head and lock?

2013-11-17 Thread anish singh
On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 wrote: > when we delete,add,search,amend the list_head,should we use spinlock > or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list' api's.You should explicitly do that AFAIK. > > Thank you! > -- > To unsubscribe from this

list_head and lock?

2013-11-17 Thread 韩磊
when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? Thank you! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

list_head and lock?

2013-11-17 Thread 韩磊
when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? Thank you! -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: list_head and lock?

2013-11-17 Thread anish singh
On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 bonben1...@gmail.com wrote: when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list' api's.You should explicitly do that AFAIK. Thank you! -- To