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] [day] [month] [year] [list]
Date:	Wed, 10 Jun 2015 15:46:58 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Wang Long <long.wanglong@...wei.com>
Cc:	<mingo@...hat.com>, <wanglong@...qinren.net>,
	<linux-kernel@...r.kernel.org>, <peifeiyue@...wei.com>
Subject: Re: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of
 producer

On Wed, 10 Jun 2015 08:12:37 +0000
Wang Long <long.wanglong@...wei.com> wrote:

> The producer should be used producer_fifo as its sched_priority,
> so correct it.
> 
> Signed-off-by: Wang Long <long.wanglong@...wei.com>

I also add this for stable 2.6.33+

Thanks, applied.

-- Steve

> ---
>  kernel/trace/ring_buffer_benchmark.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c
> index 13d945c..1b28df2 100644
> --- a/kernel/trace/ring_buffer_benchmark.c
> +++ b/kernel/trace/ring_buffer_benchmark.c
> @@ -450,7 +450,7 @@ static int __init ring_buffer_benchmark_init(void)
>  
>  	if (producer_fifo >= 0) {
>  		struct sched_param param = {
> -			.sched_priority = consumer_fifo
> +			.sched_priority = producer_fifo
>  		};
>  		sched_setscheduler(producer, SCHED_FIFO, &param);
>  	} else

--
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