[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1517200880.10151.15.camel@gmx.de>
Date: Mon, 29 Jan 2018 05:41:20 +0100
From: Mike Galbraith <efault@....de>
To: Lai Jiangshan <jiangshanlai@...il.com>,
Wen Yang <wen.yang99@....com.cn>
Cc: Tejun Heo <tj@...nel.org>, zhong.weidong@....com.cn,
Jiang Biao <jiang.biao2@....com.cn>,
Tan Hu <tan.hu@....com.cn>,
kernel test robot <xiaolong.ye@...el.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set
workqueue's scheduler
On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote:
> I think adding priority boost to workqueue(flush_work()) is the best
> way to fix the problem.
I disagree, priority boosting is needlessly invasive, takes control out
of user hands. The kernel wanting to run a workqueue does not justify
perturbing the user's critical task.
I think "give userspace rope" is always the best option, how rope is
used is none of our business. Giving the user a means to draw a simple
line in the sand, above which they run only critical stuff, below
which, they can do whatever they want, sane in our opinions or not,
lets users do whatever craziness they want/need to do, and puts the
responsibility for consequences squarely on the right set of shoulders.
-Mike
Powered by blists - more mailing lists