Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10430261ybi; Wed, 24 Jul 2019 23:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz23qj6Gbz1eKbPaTCZlSKmqS1ieCARWutWxdcEJ6M+6eWuCGeYFrTtvOt08dGP7DX0hxSj X-Received: by 2002:aa7:93a8:: with SMTP id x8mr15449848pff.49.1564034690912; Wed, 24 Jul 2019 23:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034690; cv=none; d=google.com; s=arc-20160816; b=eT857xSrmDWpB5IiDXZzgFxOlMipBuOuVdbKVftoejX4VjO2BRwQilzDZD0kO1vsR/ JJVKLH930Kx3UEVg/lMDY3rAv0so/omUboNJQGT0gQxcEywaH2hyC7DNeObBH9GH5byL pZPgSoJbo65KX0M8Y+UaSKGF7Ec6IpmxhLRjSn5XcGZShBEJVPg4OrGske8PRirstX2v vZl4pZdI9YgXACEQH2p0BLiiuBKbDyMAFQPRhTUq8jgQz2Rd+vKvPfPFeWnYaXvH6BVF yuLmHP+zrjgbX800WIdVpBvFr+CRlfNrnThe3THhSONUbvObcH5s0SOk0rRbL7u8lPF5 MGCA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OAgUUqbpUbfTi9p9JROAOdYWonztAohp5A2o1sPlDN0=; b=XomPH+fnKSoex/hAEYWAM/wj/gP9eXGBcxvIr6WH+nnz2BJs4WKbGR3JcXoN+IemzT IIE7TK0uXrJu+8382TvxT03YC7fbyh5Bo5kxG/ZpZoduGHqEjMITI6mfmq+ObsJLBglY DGsf5Z7PhTmjN5Rio0fTStgzwlf3JJBNas5upYIwVftVlr+w2GUrXFc6dZuihh11eUxz 4YLP2BsQYPIm7kPIz7vpQTEHETZHI03CgmKAsyRWI1+c5IvS/O9KipCrI8brDWK58tzk h8AdvgLoKebiFZfm3xniogvSaUshSYNnm1SzgfYMsTgioaVpHI+3PHAeoFJzIallXNGa C9HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KXRAud6p; 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 n11si13978108plg.315.2019.07.24.23.04.36; Wed, 24 Jul 2019 23:04:50 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=KXRAud6p; 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 S2391478AbfGYFqv (ORCPT + 99 others); Thu, 25 Jul 2019 01:46:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:34604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbfGYFqs (ORCPT ); Thu, 25 Jul 2019 01:46:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40AA322CD3; Thu, 25 Jul 2019 05:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033607; bh=lOUS12o9Yt8ouLDkj3XLeTVRiYqi5C1oIrnrLOi0dhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KXRAud6pOkqwti6/r8VpOr1V/UZlX3zcfuOd5fUDqQqfX5HrxY+jE1Mm9HuIr9wbT 5Qowge5/c0m12Fz4E/zlkPVb3B4e7QuZIKHhBuUj6amfIyk91Lka76uX9Dlp5cXhvP ki1bJb2zJB+RUfvKikqCwocSSarWIKxXulqF6pds= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tejun Heo , Josef Bacik , Jens Axboe Subject: [PATCH 4.19 267/271] blk-iolatency: clear use_delay when io.latency is set to zero Date: Wed, 24 Jul 2019 21:22:16 +0200 Message-Id: <20190724191718.116443451@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tejun Heo commit 5de0073fcd50cc1f150895a7bb04d3cf8067b1d7 upstream. If use_delay was non-zero when the latency target of a cgroup was set to zero, it will stay stuck until io.latency is enabled on the cgroup again. This keeps readahead disabled for the cgroup impacting performance negatively. Signed-off-by: Tejun Heo Cc: Josef Bacik Fixes: d70675121546 ("block: introduce blk-iolatency io controller") Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- block/blk-iolatency.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -746,8 +746,10 @@ static int iolatency_set_min_lat_nsec(st if (!oldval && val) return 1; - if (oldval && !val) + if (oldval && !val) { + blkcg_clear_delay(blkg); return -1; + } return 0; }