From: Tejun Heo <tj@kernel.org>
To: yingooyim <ygyim@konkuk.ac.kr>
Cc: lizefan@huawei.com, hannes@cmpxchg.org, cgroups@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
jinh@konkuk.ac.kr
Subject: Re: [PATCH] cgroup/cpu: Fix tg_has_rt_task() malfunction
Date: Tue, 20 Sep 2016 15:41:09 -0400 [thread overview]
Message-ID: <20160920194109.GC17513@htj.duckdns.org> (raw)
In-Reply-To: <1474208588556845.0.mail@mail>
On Sun, Sep 18, 2016 at 11:23:10PM +0900, yingooyim wrote:
> Hi,
> I am a graduate student of System Software Lab. at Konkuk University
> (http://sslab.konkuk.ac.kr).
>
> This patch is to fix the malfunction of tg_has_rt_tasks(). The
> tg_has_rt_tasks() function is supposed to determine whether a task
> group includes an "rt task" or not. However, it returns true for
> "dl task" too. The origin of this problem is that rt_task() called
> by tg_has_rt_tasks() returns true for dl tasks. Because of this
> problem, tg_rt_schedulable() that calls tg_has_rt_tasks() returns
> –EBUSY if we try to initialize an rt task group, while a dl task
> is running. That is, you cannot run an rt task group when there
> exists a dl task in the system. Our patch provided in this post
> simply makes the tg_has_rt_tasks() function return false for dl
> tasks by calling dl_task() in the conditional statement.
>
> Previously we have provided another patch for rt_task() (more
> precisely rt_prio()) to resolve this problem as follows:
> https://patchwork.kernel.org/patch/9299267/
> However, a dependency issue were raised. So, we think that it is
> better to modify tg_has_rt_tasks() instead of rt_task() itself.
>
> Signed-off-by: Yin-goo Yim <ygyim@konkuk.ac.kr>
Can you please repost with scheduler maintainers cc'd?
Ingo Molnar <mingo@redhat.com>
Peter Zijlstra <peterz@infradead.org>
Thanks.
--
tejun
next prev parent reply other threads:[~2016-09-20 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 14:23 [PATCH] cgroup/cpu: Fix tg_has_rt_task() malfunction yingooyim
2016-09-20 19:41 ` Tejun Heo [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-09-21 4:35 yingooyim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160920194109.GC17513@htj.duckdns.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=jinh@konkuk.ac.kr \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=ygyim@konkuk.ac.kr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).