Re: [RFC][PATCH 5/7] jump_label: Rework update logic

From: Peter Zijlstra
Date: Mon Jul 27 2015 - 12:30:23 EST


On Mon, Jul 27, 2015 at 12:47:14PM +0200, Peter Zijlstra wrote:
> @@ -68,13 +63,8 @@ void static_key_slow_inc(struct static_k
> return;
>
> jump_label_lock();
> + if (atomic_inc_and_test(&key->enabled))

atomic_inc_return() == 1, works _much_ better.

> + jump_label_update(key);
> jump_label_unlock();
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/