lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 1 Jul 2016 15:03:29 +0200
From:	Frederic Weisbecker <fweisbec@...il.com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Ingo Molnar <mingo@...nel.org>,
	Peter Zijlstra <peterz@...radead.org>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Eric Dumazet <edumazet@...gle.com>, Chris Mason <clm@...com>,
	Arjan van de Ven <arjan@...radead.org>, rt@...utronix.de,
	Rik van Riel <riel@...hat.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	George Spelvin <linux@...encehorizons.net>,
	Len Brown <lenb@...nel.org>,
	Josh Triplett <josh@...htriplett.org>
Subject: Re: [patch V3 01/22] timer: Make pinned a timer property

On Fri, Jun 24, 2016 at 02:32:01PM -0000, Thomas Gleixner wrote:
> We want to move the timer migration from a push to a pull model. This requires
> to store the pinned attribute of a timer in the timer itself. This must happen
> at initialization time.
> 
> Add the helper macros for this.
> 
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Cc: Peter Zijlstra <peterz@...radead.org>
> Cc: Frederic Weisbecker <fweisbec@...il.com>
> Cc: Chris Mason <clm@...com>
> Cc: Eric Dumazet <edumazet@...gle.com>
> Cc: rt@...utronix.de
> Cc: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
> Cc: Arjan van de Ven <arjan@...radead.org>
> 
> 
> ---
>  include/linux/timer.h |   25 ++++++++++++++++++++++---
>  kernel/time/timer.c   |   10 +++++-----
>  2 files changed, 27 insertions(+), 8 deletions(-)
> 
> --- a/include/linux/timer.h
> +++ b/include/linux/timer.h
> @@ -62,7 +62,8 @@ struct timer_list {
>  #define TIMER_MIGRATING		0x00080000
>  #define TIMER_BASEMASK		(TIMER_CPUMASK | TIMER_MIGRATING)
>  #define TIMER_DEFERRABLE	0x00100000
> -#define TIMER_IRQSAFE		0x00200000
> +#define TIMER_PINNED		0x00200000
> +#define TIMER_IRQSAFE		0x00400000
>  
>  #define __TIMER_INITIALIZER(_function, _expires, _data, _flags) { \
>  		.entry = { .next = TIMER_ENTRY_STATIC },	\
> @@ -78,9 +79,15 @@ struct timer_list {
>  #define TIMER_INITIALIZER(_function, _expires, _data)		\
>  	__TIMER_INITIALIZER((_function), (_expires), (_data), 0)
>  
> +#define TIMER_PINNED_INITIALIZER(_function, _expires, _data)	\
> +	__TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_PINNED)
> +
>  #define TIMER_DEFERRED_INITIALIZER(_function, _expires, _data)	\
>  	__TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_DEFERRABLE)
>  
> +#define TIMER_PINNED_DEFERRED_INITIALIZER(_function, _expires, _data)	\
> +	__TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_DEFERRABLE | TIMER_PINNED)
> +

I guess it means that no timer took the freedom to be sometimes enqueued pinned and
sometimes unpinned. Which is a good news :-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ