Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10520179ybi; Thu, 25 Jul 2019 00:48:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2tIpPIRFj1bMhl65hWt3LYsEl4hUUkrG+vskFDGEN/spqgo/OKOv4nsCPUO516/k2JG+Y X-Received: by 2002:a17:902:b415:: with SMTP id x21mr5544275plr.287.1564040902349; Thu, 25 Jul 2019 00:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564040902; cv=none; d=google.com; s=arc-20160816; b=BqXLCLOrSBit80A1MbXNyKVsE8grqZF0lE5Rf3TCA3+IETyBmY5q3HTOCPfO1I7Cl7 DZJmSGOx76zwo3vXEQpY/vR7a1ZFBOpSHbh6Jnk6jY+hEq/YCRXLLBV+IYOi7LuvwJLw pQVcwjgwKleutjwpzi88kL6326ZxOuNtwOeRI6hcOwdFmkeyq8+8bACyYmDJ8DRTGoEB KTyHtZHcE7DZuQ1O2vKhZBTqKggXCZ3gVdr6er/YkzgAJIPRvuZM0VMACkYxa8VCCMid Uxf5LRLKWnUcNNQyeqU7NE6IrT3ejUp9nRL06DR01QB85Rxa+ZdkQzCITiAL5429USgB 7ouQ== 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=HzKLCJl5yEzzfGOhrfnOthfTNcYfgiYMxqbFYiHB8WY=; b=y9t7Q2PF0g9XifRnPFzYTY7HM2rlrFOyTWLIUxpYhOwy58Qyhf9xWYNg/WTyX1u156 t4Aeezwm2Rqn2pPxRlqKfgO+zFrwWrkQZYZdJetzhNrVu3LD4eRkerQergbq7gQJBhYS HpJ1jP+YCRv6bwsqvWMRCacQ1vyHuRGjqwNNgKVP60jpvL2i9+vooBSMrNxx0CUajSqP B8XRY+NcGEo1jT9LP9b6VDAQ6BkjXttVDi4Op6j9uldYZzgHJRdVFCMNd/Er3sePbp4c CbdY0kgG5YpotbhvgejALzIyk9Bwt4TtiZKuRwpL5DNbluMLJStqCleaeIon/9jPLOUO bdVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L96R8ybI; 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 s18si15774501plp.128.2019.07.25.00.48.03; Thu, 25 Jul 2019 00:48:22 -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=L96R8ybI; 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 S2405291AbfGXUAw (ORCPT + 99 others); Wed, 24 Jul 2019 16:00:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:48892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404950AbfGXUAk (ORCPT ); Wed, 24 Jul 2019 16:00:40 -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 15FCA205C9; Wed, 24 Jul 2019 20:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998440; bh=Imh51isZT2drzGlUwJKWk7XtSEG4yh7bkKWU/He7j2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L96R8ybIVsIcNIkO9Gi7iC4SfP3aSRs5jV/SMF39ypaPRUxRCyiqTQBksnCF7brMu Tkbyr20x7dg2u6UBc81h94D++4rFyUyiGwqFqKh0xUrVygpVuSPJ8E47zsL0aRY27I hONsN/ngv4NbcDZv+t0vfN+Y/syF/4wWUGHPzZJY= 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.1 366/371] blk-iolatency: clear use_delay when io.latency is set to zero Date: Wed, 24 Jul 2019 21:21:58 +0200 Message-Id: <20190724191751.788091643@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@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 @@ -758,8 +758,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; }