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, 10 Oct 2014 22:32:20 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Oleg Nesterov <oleg@...hat.com>
Cc:	Ingo Molnar <mingo@...hat.com>,
	Steven Rostedt <rostedt@...dmis.org>,
	linux-kernel@...r.kernel.org, Kirill Tkhai <tkhai@...dex.ru>
Subject: Re: [PATCH 1/1] sched: make finish_task_switch() return struct rq *

On Fri, Oct 10, 2014 at 07:06:42PM +0200, Oleg Nesterov wrote:
> On 10/10, Peter Zijlstra wrote:
> >
> > On Thu, Oct 09, 2014 at 09:32:32PM +0200, Oleg Nesterov wrote:
> > > @@ -2802,15 +2802,8 @@ need_resched:
> > >  		rq->curr = next;
> > >  		++*switch_count;
> > >
> > > -		context_switch(rq, prev, next); /* unlocks the rq */
> > > -		/*
> > > -		 * The context switch have flipped the stack from under us
> > > -		 * and restored the local variables which were saved when
> > > -		 * this task called schedule() in the past. prev == current
> > > -		 * is still correct, but it can be moved to another cpu/rq.
> > > -		 */
> > > -		cpu = smp_processor_id();
> > > -		rq = cpu_rq(cpu);
> > > +		rq = context_switch(rq, prev, next); /* unlocks the rq */
> > > +		cpu = rq->cpu;
> >
> > This won't compile on UP, cpu_of(rq) works though.
> 
> Heh ;) and I swear I was going to write cpu_of().
> 
> and I agree with BUG_ON() in __trace_sched_switch() if CONFIG_SCHED_DEBUG.
> 
> I am travelling till next Wednesday, will resend everything once I return.

Not towards DUS by any chance? I fixed up the patches, they should be in
here:
  https://git.kernel.org/cgit/linux/kernel/git/peterz/queue.git/log/?h=sched/core

If I missed some, please do resend (or ping me on) those.
--
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