Received: by 10.223.176.5 with SMTP id f5csp2431628wra; Sun, 28 Jan 2018 20:44:21 -0800 (PST) X-Google-Smtp-Source: AH8x225dZ4RHM04WkPrPb1Wb0iXpFm87BkJwoqwMOGkLLc9VaSyhlwDw3taw1t6mCw7f/qjvBhbB X-Received: by 2002:a17:902:42a5:: with SMTP id h34-v6mr20033430pld.265.1517201061066; Sun, 28 Jan 2018 20:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517201061; cv=none; d=google.com; s=arc-20160816; b=RC5o+MpD4rvLXqpvdbFvw21KcS9K6CPpBVAXnPvYskrYYIK7pGHsOuVqDXDxxwN7cX MnZrz1ByV7Lfm7f+GYmgeSsjR+rSTuPlcssL1yev3VxO0lcjYMsetOWeKdeGZMsxISP2 fvtgraQjxp27QQ1qRtoxo/hJJ3JTonNXsaaDk+0XFTkTYsEQhg+DuaWkYawZbgYqFR1I jqxOtvut9LumLRM2Ubk1TY8C3T8S58bvsMJ8GDFKjcIrL2tZuIfjzWv6bSwsBSOLw272 IyY+wY9O3L8iNPJOLSBSbooEQsudLwSuiGZKPE6cqIlx7dQHKFmdWA4DeBkPe0kRur13 rX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=JlwnICRUeuuoSnLtsaTYouu44pKhr/jJUtWBkglHGNA=; b=c/7mixrAj+LvrUSyfdIL1wJc1CGC1iBnzhpacKYzQNh2WdE3+oFbiqSls0A9BbyiPH uyh1HxMAo5eJbHkF6TxlqHzMqQnb+2djcQ6moeYd8wUG0IGOIbREfNqXyO37MDjr3Sqy VW7TerdyXxL+RpWTdMTg+vox/8RN1TG9jgYki4EWVdOzIZnMtXFx192dTM4pWziD+s1T jak0MujgE6sK/vTSq/Eme5PHGmCnoIbpLExp7ieISKLJKyCOUZ265aLW0LewM9SmeYKe HoFbOnjqtgPfZUlBTxkGvodur8k41wMweBbsxmhiyKsq/wGBYcfw7SPpiY6cWXP0R8vh sTtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16si10980722pfe.336.2018.01.28.20.44.05; Sun, 28 Jan 2018 20:44:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751452AbeA2Elt convert rfc822-to-8bit (ORCPT + 99 others); Sun, 28 Jan 2018 23:41:49 -0500 Received: from mout.gmx.net ([212.227.17.22]:52994 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751127AbeA2Elr (ORCPT ); Sun, 28 Jan 2018 23:41:47 -0500 Received: from homer.simpson.net ([185.191.217.115]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ll0tl-1fEFTq3ij7-00ao5p; Mon, 29 Jan 2018 05:41:24 +0100 Message-ID: <1517200880.10151.15.camel@gmx.de> Subject: Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler From: Mike Galbraith To: Lai Jiangshan , Wen Yang Cc: Tejun Heo , zhong.weidong@zte.com.cn, Jiang Biao , Tan Hu , kernel test robot , LKML Date: Mon, 29 Jan 2018 05:41:20 +0100 In-Reply-To: References: <1517030127-21391-1-git-send-email-wen.yang99@zte.com.cn> <1517030127-21391-5-git-send-email-wen.yang99@zte.com.cn> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:NGhR+/xargcay/6dMSjr/X+Q3LwM+pw5NRAZIavTPgZv5wf98WT kN29GgFDac+0kUPtObWDqHAqN9eaYwlSMsvlWjgb1gqFIQaXJ8JK40NsIyxiludYbbcqQz2 qfcqpmgA/8qKLGEEJKHmng2BDvCsQgH+igFXiqoOWgcWylIHqkhOVM/vhZjo4VoOi6wOSpd r/AFXNcZ8YSCK4foUVw1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:gmeQfJlYWk4=:DpfAi9N9zehUzBqksJdBQF EnTX6K6je0/CWH8L/WcGkmPHN5f26EN9tWSUnIqvww2+oNxBuD4BIfc3pPTsv3aE4G9XOjtTI FmrBz0ObIS7lh45SiWdDPtPr9QeP1/qlbOumxqecSCAVx+ihvrWGfcSali5qIzMdzGLfKg21u UcAeO2VaF5U8ZccK4Xj2A1BRjLygQXOQvYHacBqdtmOFS8NMOtq2eowvD4HZLYUmuDkyUYQUq k8zr8KPzPekXZZLu6iYDJrxknvsKN8UTuqZG+LUFfZic3J1owSA877okrKheR2TLAjrSMJ3lX VSrjcoew71eQGBl56dO8SqwZ6X36OX653OEUZfo5JYY3wH8i4etAxH2BlM6DsEmmTEoJOzizU n/VaqfhstIufbwQhZb8QTsJ+hcPYQDi7fYhYlPpgfgKAYhQT2OZHfptkXMs5Ty9ZTXgs5LZNc +aoflbx8kOKjrnUI4cjaXZjZ1yILw9g3QSPq3q0W8Vtbmrp+XXu105FZ8Szo0HaPo8bm/VKpc uJbbec5XmlUCC+nRIGgIIWp7rN/pK9wrSQWJX9uEwRy0Jpg+8VeXRfSYsTIspECDa/B5C88m/ dxedJD5Yd2HoC8tPhJtbqSKeU7jBM3N/O1XW1UF1WPYj8zTnrFTY5mVL7jzcGIopHmRIHkseX WH32Nf7YhWohgWym6w2akZHtAM+XoDpQqXTMKozTH1CIDYrgQuBynZHqkX0z2l1Dx4D3/QaLF uozl/0TU4YzD87c1Yd2nOP4+SmCLmTkJahgAi1+DojJW1o2ydDurnAtTyzVqg0PixJDJNZA2q hkvD4xjv4cwd7/7GgsRjQiMfmJzHUj/hCLaW67JZu3Xt57hTnM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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