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]
Message-Id: <1239293911.4529.7144.camel@localhost.localdomain>
Date:	Thu, 09 Apr 2009 09:18:31 -0700
From:	"Pallipadi, Venkatesh" <venkatesh.pallipadi@...el.com>
To:	Jon Hunter <jon-hunter@...com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Allow deferrable timers for intervals tv2-tv5 to be
 deferred

On Thu, 2009-04-09 at 07:54 -0700, Jon Hunter wrote:
> In the current kernel implementation only kernel timers for time 
> interval tv1 are being deferred. This patch allows any timer that is 
> configured as deferrable to be defer regardless of time interval.
> 
> This patch was previously discussed on another the thread [1] and Ack'ed 
>   by Venki Pallipadi the author of the original deferrable timer patch.
> 
> Venki, could you also ack this patch for confirmation?
> 
> Cheers
> Jon
> 
> [1] http://marc.info/?l=linux-kernel&m=123196343531966&w=2
> 
> 

Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>

> Signed-off-by: Jon Hunter <jon-hunter@...com>
> ---
>   kernel/timer.c |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/kernel/timer.c b/kernel/timer.c
> index b455556..6ab6e96 100644
> --- a/kernel/timer.c
> +++ b/kernel/timer.c
> @@ -1012,6 +1012,9 @@ cascade:
>   		index = slot = timer_jiffies & TVN_MASK;
>   		do {
>   			list_for_each_entry(nte, varp->vec + slot, entry) {
> +				if (tbase_get_deferrable(nte->base))
> +					continue;
> +
>   				found = 1;
>   				if (time_before(nte->expires, expires))
>   					expires = nte->expires;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ