Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp994209imu; Tue, 20 Nov 2018 09:57:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vlr90E4GDA7hA1xDszWt9gbXOGtbMhVzYBfxuoEG/9rTtaRXN3q0cLdFnoQ7fJNLnDsPQV X-Received: by 2002:a17:902:24c:: with SMTP id 70-v6mr3134569plc.120.1542736623723; Tue, 20 Nov 2018 09:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542736623; cv=none; d=google.com; s=arc-20160816; b=XGCqSEwM7Qdo3CO4EnFO9HmYSG8oHZhEIwVCHJlDxWnkGWMUNkX7IZeax/XL1+1n4X Jtsw4DDbyzjeHStENAIIbSSTZRCTrQyQSBnDrXIyg35oAWEGagqikBdJ/HnXGATDHu59 6/2r7/AGjUuX5/NPLJiOktBYUAH3VcvgkUguX7NLAQtscqvzJv8dZU1ZZWqQhCN9L/Mt kVcSHJ6msrUyrUj01fwGha/RZ+7vUSiGPgbmNQKqDkS1/DxruERmnToJrFA/mj9f6r4R 4ttDHs+98yPmcFgbeXo3SmKHrYZXq3ZPu9Rz1izdi+jDHVB3hkmntrtl57PQTDT/YLmp zdgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wLqi/vF2D0NhTrVanrL5/ikBNTGd8RqVHgF0CR1yK+8=; b=SVOuAAHmpFjsupFXcgyJAi2H0+kamqwzx5wRzVP7egPhYMrjFDmCu1dxbYjgOrp+Bo e7sCtxRYRIn3vq5Sa1LSJ2Rrl5Owo/hhlzMA4HGfu/sYtc9H9NjjkfHd8XKoHZricY82 heFeTZssf4nQK4UguENFHK5TxOkszHwGPAgcBhTOoZ8PSkpeXHCAIKNknYTd3r6J7IcH aEH5JjzzmDiLoP3btGRStdlMc+G6qabycy2IU0BPePFKD1P7qtUbmGQOMCvhA0C/R4HF Hw1USz40vaCxFnLE7M803Jd+pmDk21+D3Fvm6PGFHrDzg43qRUuDUILbiB9Swer50r43 iDUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XXcuj7i8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n33si41043904pgl.336.2018.11.20.09.56.49; Tue, 20 Nov 2018 09:57:03 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XXcuj7i8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729504AbeKUDDX (ORCPT + 99 others); Tue, 20 Nov 2018 22:03:23 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:45053 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeKUDDW (ORCPT ); Tue, 20 Nov 2018 22:03:22 -0500 Received: by mail-yw1-f68.google.com with SMTP id k6-v6so997447ywa.11; Tue, 20 Nov 2018 08:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wLqi/vF2D0NhTrVanrL5/ikBNTGd8RqVHgF0CR1yK+8=; b=XXcuj7i8EFzOCtQ0gd1b14G9CfQjyJP2hi8itJmkJ0TlCB/q/wNk5ZGjUqhktuLRXx NgLQsuyfRbEKMLz88ajpLpsmt5U9dpcwsA2S0vDq7cBHeTWLG6DtsjgT49zvmK+QSyUl YFBbB04uny6GG4r3m8L/gJGLX6cyxh+BvKuYtrV9ST50R2ol7MatBMp7iIau97vI1rS6 vcTUCbwL9GJJuM5NJ7cpMV227Ev9QllUOaedWNa/WfHxYHTP+SK7dPrQzLL2v9uu1sl2 qQhOfZ1XqaUicaoVjdrLkvHWZEClrXg5tgTxk84RiueXffTMSXBVIkidKa4dYdQ4Esac xaQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=wLqi/vF2D0NhTrVanrL5/ikBNTGd8RqVHgF0CR1yK+8=; b=TouFEdDX/rMBSjO3R9KApzizGQq+yGi8fD9dpgCWRFv8LlLlv8xfsyd7bfCbwq7+yS jyUros+vpMGB//Z6RNKLZNLDniklNmJ6oXxlhvjjwwrgJQ/F42xurvP6IAHot6fUhRLJ 7Hpxhxv+oKutgTeuhR39QnEFSJyLC+H5Qwvs3r6Vn9IntZoe7o8TAcOYEHNlcjl/sUGc QWXMn5z62Pz+hqQSxqjjYN5MD07yXC0mRKWlojZE/F1OkfxoLmlmJkL0IyUSAhNVBzwV HVBffdY3x8CAD8taaE508DP+Mq36d0BfGXEFmQoNZoar/+vHImHY7FfurZ1Darw6pAlr cBZA== X-Gm-Message-State: AGRZ1gJSRxrJqbpS5jJLhIwQ/7Zp73piKmN9AyLh3lt241WSVcRXaYlZ TulPacamQsm9sEFvKt1ufcg= X-Received: by 2002:a81:3bc1:: with SMTP id i184-v6mr2557237ywa.455.1542731601711; Tue, 20 Nov 2018 08:33:21 -0800 (PST) Received: from localhost ([2620:10d:c091:200::7:4b6a]) by smtp.gmail.com with ESMTPSA id u84sm3842541ywb.12.2018.11.20.08.33.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 08:33:20 -0800 (PST) Date: Tue, 20 Nov 2018 08:33:19 -0800 From: Tejun Heo To: Daniel Jordan Cc: linux-mm@kvack.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, aarcange@redhat.com, aaron.lu@intel.com, akpm@linux-foundation.org, alex.williamson@redhat.com, bsd@redhat.com, darrick.wong@oracle.com, dave.hansen@linux.intel.com, jgg@mellanox.com, jwadams@google.com, jiangshanlai@gmail.com, mhocko@kernel.org, mike.kravetz@oracle.com, Pavel.Tatashin@microsoft.com, prasad.singamsetty@oracle.com, rdunlap@infradead.org, steven.sistare@oracle.com, tim.c.chen@intel.com, vbabka@suse.cz Subject: Re: [RFC PATCH v4 05/13] workqueue, ktask: renice helper threads to prevent starvation Message-ID: <20181120163319.GW2509588@devbig004.ftw2.facebook.com> References: <20181105165558.11698-1-daniel.m.jordan@oracle.com> <20181105165558.11698-6-daniel.m.jordan@oracle.com> <20181113163400.GK2509588@devbig004.ftw2.facebook.com> <20181119164554.axobolrufu26kfah@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181119164554.axobolrufu26kfah@ca-dmjordan1.us.oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 08:45:54AM -0800, Daniel Jordan wrote: > So instead of flush_work_at_nice, how about this?: > > void renice_work_sync(work_struct *work, long nice); Wouldn't renice_or_cancel make more sense? Thanks. -- tejun