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:	Wed, 5 Jan 2011 00:51:31 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Rik van Riel <riel@...hat.com>
Cc:	kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
	Avi Kiviti <avi@...hat.com>,
	Srivatsa Vaddagiri <vatsa@...ux.vnet.ibm.com>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Mike Galbraith <efault@....de>,
	Chris Wright <chrisw@...s-sol.org>
Subject: Re: [RFC -v3 PATCH 2/3] sched: add yield_to function

On Wed, Jan 5, 2011 at 12:44 AM, Rik van Riel <riel@...hat.com> wrote:
> On 01/04/2011 11:41 AM, Hillf Danton wrote:
>
>> /*                       !curr->sched_class->yield_to_task ||        */
>>
>>> +                       curr->sched_class != p->sched_class) {
>>> +               goto out;
>>> +       }
>>> +
>>
>>        /*
>>          * ask scheduler to compute the next for successfully kicking
>> @p onto its CPU
>>          * what if p_rq is rt_class to do?
>>          */
>>        next = pick_next_task(p_rq);
>>        if (next != p)
>>                p->se.vruntime = next->se.vruntime -1;
>>        deactivate_task(p_rq, p, 0);
>>        activate_task(p_rq, p, 0);
>>        if (rq == p_rq)
>>                schedule();
>>        else
>>                resched_task(p_rq->curr);
>>        yield = 0;
>
> Wouldn't that break for FIFO and RR tasks?
>
> There's a reason all the scheduler folks wanted a
> per-class yield_to_task function :)
>

Where is the yield_to callback in the patch for RT schedule class?
If @p is RT, what could you do?

Hillf

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ