On Fri, Aug 12, 2011 at 07:52:06PM +0200, Johannes Weiner wrote: > Do we even need to make this fixed? It can be unsigned long long for > now, but I could imagine leaving it up to the user depending how much > space she is able/willing to invest to save time: > > void synchronize_rcu_with(unsigned long time, unsigned int bits) > { > if (generation_counter & ((1 << bits) - 1) == time) > synchronize_rcu(); > } > > If you have only 3 bits to store the time, you will synchronize > falsely to every 8th phase. Better than nothing, right? Ok if any of the bits is different we can safely skip it. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>