Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-08-01 Thread Byungchul Park
On Wed, Aug 01, 2018 at 01:43:10PM +0800, Huang, Ying wrote: > Byungchul Park writes: > > > I think rcu list also works well. But I decided to use llist because > > llist is simpler and has one less pointer. > > > > Just to be sure, let me explain my use case more: > > > >1. Introduced a glob

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Huang, Ying
Byungchul Park writes: > I think rcu list also works well. But I decided to use llist because > llist is simpler and has one less pointer. > > Just to be sure, let me explain my use case more: > >1. Introduced a global list where single linked list is sufficient. >2. All operations I need

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Byungchul Park
On Tue, Jul 31, 2018 at 09:46:16AM -0400, Steven Rostedt wrote: > On Tue, 31 Jul 2018 18:38:09 +0900 > Byungchul Park wrote: > > > On Tue, Jul 31, 2018 at 10:52:57AM +0200, Peter Zijlstra wrote: > > > On Tue, Jul 31, 2018 at 09:58:36AM +0900, Byungchul Park wrote: > > > > In restrictive cases l

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Byungchul Park
On Tue, Jul 31, 2018 at 07:30:52AM -0700, Paul E. McKenney wrote: > On Tue, Jul 31, 2018 at 06:29:50PM +0900, Byungchul Park wrote: > > On Mon, Jul 30, 2018 at 09:30:42PM -0700, Paul E. McKenney wrote: > > > On Tue, Jul 31, 2018 at 09:58:36AM +0900, Byungchul Park wrote: > > > > Hello folks, > > >

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Paul E. McKenney
t; > > Thank a lot for your answers in advance :) > > > > You did ask! > > > > Thanx, Paul > > > > > ->8- > > > >From 1e73882799b269cd86e7a7c955021e3a18d1e6cf Mon Sep 17

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Steven Rostedt
On Tue, 31 Jul 2018 18:38:09 +0900 Byungchul Park wrote: > On Tue, Jul 31, 2018 at 10:52:57AM +0200, Peter Zijlstra wrote: > > On Tue, Jul 31, 2018 at 09:58:36AM +0900, Byungchul Park wrote: > > > In restrictive cases like only addtions happen but never deletion, can't > > > we safely traverse

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Byungchul Park
On Tue, Jul 31, 2018 at 10:52:57AM +0200, Peter Zijlstra wrote: > On Tue, Jul 31, 2018 at 09:58:36AM +0900, Byungchul Park wrote: > > In restrictive cases like only addtions happen but never deletion, can't > > we safely traverse a llist? I believe llist can be more useful if we can > > release the

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Byungchul Park
gt; You did ask! > > Thanx, Paul > > > ->8- > > >From 1e73882799b269cd86e7a7c955021e3a18d1e6cf Mon Sep 17 00:00:00 2001 > > From: Byungchul Park > > Date: Tue, 31 Jul 2018 09:31:57 +0900 >

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-31 Thread Peter Zijlstra
On Tue, Jul 31, 2018 at 09:58:36AM +0900, Byungchul Park wrote: > In restrictive cases like only addtions happen but never deletion, can't > we safely traverse a llist? I believe llist can be more useful if we can > release the restriction. Can't we? Yes you can, but I'm not sure it makes much sen

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-30 Thread Huang, Ying
Byungchul Park writes: > On Tue, Jul 31, 2018 at 09:37:50AM +0800, Huang, Ying wrote: >> Byungchul Park writes: >> >> > Hello folks, >> > >> > I'm careful in saying.. and curious about.. >> > >> > In restrictive cases like only addtions happen but never deletion, can't >> > we safely traverse a

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-30 Thread Byungchul Park
On Tue, Jul 31, 2018 at 09:37:50AM +0800, Huang, Ying wrote: > Byungchul Park writes: > > > Hello folks, > > > > I'm careful in saying.. and curious about.. > > > > In restrictive cases like only addtions happen but never deletion, can't > > we safely traverse a llist? I believe llist can be more

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-30 Thread Paul E. McKenney
Thank a lot for your answers in advance :) You did ask! Thanx, Paul > ->8- > >From 1e73882799b269cd86e7a7c955021e3a18d1e6cf Mon Sep 17 00:00:00 2001 > From: Byungchul Park > Date: Tue, 31 Jul 2018 09:31:57 +0900 >

Re: [QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-30 Thread Huang, Ying
Byungchul Park writes: > Hello folks, > > I'm careful in saying.. and curious about.. > > In restrictive cases like only addtions happen but never deletion, can't > we safely traverse a llist? I believe llist can be more useful if we can > release the restriction. Can't we? > > If yes, we may add

[QUESTION] llist: Comment releasing 'must delete' restriction before traversing

2018-07-30 Thread Byungchul Park
ersing starting from a head. Or just use existing funtion with head->first. Thank a lot for your answers in advance :) ->8- >From 1e73882799b269cd86e7a7c955021e3a18d1e6cf Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Tue, 31 Jul 2018 09:31:57 +0900 Subject: [QUESTION] llist: