Re: [lttng-dev] [rp] [RFC PATCH urcu] urcu_ref_get: API change: return boolean

2016-01-21 Thread Josh Triplett
> new "urcu_ref_get_safe()" or such would be a better option ? > > After some thinking, I will go for adding a new urcu_ref_get_safe() API, > thus not requiring to bump the library major version. You may want to add a deprecated __attribute__ to the unsafe version in

Re: [lttng-dev] [RFC] adding into middle of RCU list

2013-09-01 Thread Josh Triplett
On Sat, Aug 31, 2013 at 02:32:28PM -0700, Paul E. McKenney wrote: On Thu, Aug 29, 2013 at 07:16:37PM -0700, Josh Triplett wrote: On Thu, Aug 29, 2013 at 05:57:33PM -0700, Paul E. McKenney wrote: On Fri, Aug 23, 2013 at 02:08:22PM -0700, Paul E. McKenney wrote: On Fri, Aug 23, 2013 at 01

Re: [lttng-dev] [RFC] adding into middle of RCU list

2013-09-01 Thread Josh Triplett
On Sun, Sep 01, 2013 at 03:26:19PM -0700, Paul E. McKenney wrote: On Sun, Sep 01, 2013 at 01:42:10PM -0700, Josh Triplett wrote: On Sat, Aug 31, 2013 at 02:32:28PM -0700, Paul E. McKenney wrote: On Thu, Aug 29, 2013 at 07:16:37PM -0700, Josh Triplett wrote: On Thu, Aug 29, 2013 at 05:57

[lttng-dev] [PATCH] rcu: Make rcu_assign_pointer's assignment volatile and type-safe

2013-09-01 Thread Josh Triplett
struct foo *noident test.c:25:9:got struct foo [noderef] asn:1*badsrc Signed-off-by: Josh Triplett j...@joshtriplett.org --- include/linux/rcupdate.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 4b14bdc

Re: [lttng-dev] rcu: Make rcu_assign_pointer's assignment volatile and type-safe

2013-09-01 Thread Josh Triplett
space *)(v); \ False positive; checkpatch.pl seems to parse this as multiplication rather than a cast. - Josh Triplett ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Re: [lttng-dev] [RFC] adding into middle of RCU list

2013-08-29 Thread Josh Triplett
of bar (because typeof propagated noderef). - Josh Triplett ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Re: [lttng-dev] [rp] [PATCH] Ensure that read-side functions meet 10-line LGPL criterion

2012-09-02 Thread Josh Triplett
On Sun, Sep 02, 2012 at 09:07:33AM -0700, Paul E. McKenney wrote: On Sat, Sep 01, 2012 at 10:13:55PM -0700, Josh Triplett wrote: On Sat, Sep 01, 2012 at 05:59:11PM -0700, Paul E. McKenney wrote: This commit ensures that all read-side functions meet the 10-line LGPL criterion that permits

Re: [lttng-dev] [rp] [RFC] Userspace RCU library internal error handling

2012-06-21 Thread Josh Triplett
for this can't happen cases, and assert also generates a signal that the application can catch and clean up. - Josh Triplett ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Re: [lttng-dev] [rp] [RFC] Userspace RCU library internal error handling

2012-06-21 Thread Josh Triplett
On Thu, Jun 21, 2012 at 03:03:06PM -0400, Mathieu Desnoyers wrote: * Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Jun 21, 2012 at 12:41:13PM -0400, Mathieu Desnoyers wrote: Currently, liburcu calls exit(-1) upon internal consistency error. This is not pretty, and usually frowned

Re: [lttng-dev] [rp] [RFC] Userspace RCU library internal error handling

2012-06-21 Thread Josh Triplett
On Thu, Jun 21, 2012 at 03:48:38PM -0400, Mathieu Desnoyers wrote: * Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Jun 21, 2012 at 03:03:06PM -0400, Mathieu Desnoyers wrote: * Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Jun 21, 2012 at 12:41:13PM -0400, Mathieu Desnoyers

Re: [lttng-dev] [rp] [RFC PATCH urcu] Document uatomic operations

2012-05-16 Thread Josh Triplett
assuming a return value from rcu_assign_pointer. I'd recommend making it void. - Josh Triplett ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev