Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10410274ybi; Wed, 24 Jul 2019 22:43:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbJle3JuM3Rm7luwULs57x1fAVxGujwOGPQwoV1cfEVX+rk68lpCJnn3rqpa0DtEo3stuI X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr91320636plb.56.1564033391855; Wed, 24 Jul 2019 22:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033391; cv=none; d=google.com; s=arc-20160816; b=jwYgv2+wFnL+wKcWVuA8OjNy2iMh+FIqgajPF6HVHk255/lfagKclKYU8/m95M/xBy iJb5Fp8ZmC7bcj6z/RIvwxgQqn+7zD7U1DFxYtDOtrlWFu4Xnh7BZrf80eGGCFH7Wztl 2u12mLAc9uk4hGyR5c19nP5Cdz76ocNzHKMxRvT7zOsTLZxn7ANfIZMg+0sdhvJPU1or Z346BljMRAQIOuXdl/j0Lv0p/U9bBZqpj4UB7fpXfjyTcykDQbE0QqTa9WVP0FyQ+uUK yTySzMlCw51lilVSiSfQwuVq5eqlTmwMjOjCT5jMRSKS3YnkJ7OV+IQ898UycbtpU0Fh 7EAg== 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=EVw2IBHw1JAGjOCAe3Z43yK7cfWSq6mlPK4JmmVhq9g=; b=wOeALw9ivjf2WYK6D+6JPwzAVldD4KKncmAAv7Xh5f2zGwiw6imGI2y53LYm+bJ6tP YiceuLQ9+sQZGt8338xSqnDyN2O8om6AZAAmOPXSWL6qa03tOqUiD0hMvdPHMp0YL0sb mdgGIO77QkUXGKFshhJB0NZPc4gtFYLVy3n1hmvhcNCBzwvPz9tz+yN+yTeppEIP+N4K jiCIoDkudGduqfn9+CBfk+5f6RU/T2VI0o8XWbJ64AM4nLSkGNEWOr3QnPhzQ94pSVFy u7E711Y+L5pyHYasBMh3SETvWQ2KSbuj381B5iX4hCZDyGSGTA5C0wBTzHjCi5Pv3IEy 1nZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PhIrYAVl; 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 p5si20534233pfp.64.2019.07.24.22.42.57; Wed, 24 Jul 2019 22:43:11 -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=PhIrYAVl; 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 S2390866AbfGXUXn (ORCPT + 99 others); Wed, 24 Jul 2019 16:23:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:44238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387897AbfGXTmb (ORCPT ); Wed, 24 Jul 2019 15:42:31 -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 31FEB22ADA; Wed, 24 Jul 2019 19:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997350; bh=ikudbIaHF+TQIA27wylt1DWHxq8QWyo2t/AkcsVrBNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PhIrYAVlS4FckuEqxmc0B6Gp1R6WOqOpNRoe6ixbeMGHX7BKpTFKsEVP6vs8/ERjl 2xhKMm/sowi3qXob8nN5orbHde9tjPzDWcmeH6kwme1/Ds4UtQsFqXTGzAMuBtLV55 5x3ClijA+UWZ47QwcRCgOB43y39mnmiZaugB0Ywk= 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 5.2 406/413] blk-iolatency: clear use_delay when io.latency is set to zero Date: Wed, 24 Jul 2019 21:21:37 +0200 Message-Id: <20190724191803.688554541@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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 @@ -759,8 +759,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; }