Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp177884imd; Wed, 31 Oct 2018 16:53:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5cRzhTgR+cAYZWgMlkzQf2cgf4f597eVymSf3h3Tf5Occnc0+bOxSzqvc1ERlztSzGo4LFm X-Received: by 2002:a17:902:47:: with SMTP id 65-v6mr5419354pla.112.1541030010930; Wed, 31 Oct 2018 16:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541030010; cv=none; d=google.com; s=arc-20160816; b=Ae+jnek4qOOceLUWSWD+6G9YkmRtPHB3uIKl2/uI9KJQGvZKnPEWOAj0LF/WYmw5UG Fz3MdchFGoqSxxLL+GznaYeK3t5wXZ9NXcnNACnpdQy5zA6yDLgVJ0OY3ipmQaxJHQIu ChO+9iHHyZy+UWC74nYRUt8fS5VYhNbh0ZoazO1NN0vGL8aZeVgGsErJ2T0gDVzZqjx4 oijcseLhQICJLwY8mE1z9+MXDzBhnWOCFdXZ7N+W5YhZ4edKyrWiWLdShmwzA5jUik+9 sVZc2s1+JlENiRv3U4lxYTRQSooMg5UlWX+JDEXonb5EKNuzN5xvc9nAjWVrCXhrhroC yuQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=cFW5MboOOnDTnEZ4rGEvV9kztBmFC+0rFh6tj4j0AWQ=; b=w4F0GB6fvfpMddRd8NBNXyoG48mhmv3ulMs6ucv3im6uCVlY6rrTa4ZwrPNXVSQ3PA 9GuYU2aZ5h/WSUIohmraYdvFOLMwWBmuUyEPeQXOOxgKG0RyXDGzJIKrP7OaOJYyxORo 5jaF2vCNrqpGtY0udjcaIM6Z4urRpASMX3Egj1c7/+F+5yJb3T4kR/L7BOSzsfTaSAis T/gO6mrYtMIDCbLczZylPsbrFJIrBjIe6EyPvLoES3G99j9+dPjIrupvdS6qGvsexjAa PX5/BVZPo4A6rP9pZMSuc0Fnu5hHbXdpN/VtalyjiHZVNW4Q8sFnnwe+e+Vhv0Gvkbho mrgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xpJh+ehO; 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=pass (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 b9-v6si28855149pgi.91.2018.10.31.16.53.16; Wed, 31 Oct 2018 16:53:30 -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=xpJh+ehO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727745AbeKAIGQ (ORCPT + 99 others); Thu, 1 Nov 2018 04:06:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:53024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727683AbeKAIGO (ORCPT ); Thu, 1 Nov 2018 04:06:14 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5043E20840; Wed, 31 Oct 2018 23:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027164; bh=BEDCdPOFxAxzV5SglPa0Qo72PbSZrndlj5VsDH8eNHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xpJh+ehOBcYYu7NQMjmOCXm0dBjln5d+fsSSRPWfumEK8wpMDdKwgdHufUivu6JwQ dwSbtHg86ctGSusMpr/GKKC0EcpUJwkpnUSzfMg1faKyvytyF94Jqw+U9epVI7T+GL A18JTZKphOc7ClklOmftzvsW+6RzazmCKl27UWwM= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ben Peddell , Coly Li , Jens Axboe , Sasha Levin Subject: [PATCH AUTOSEL 4.19 023/146] bcache: Populate writeback_rate_minimum attribute Date: Wed, 31 Oct 2018 19:03:38 -0400 Message-Id: <20181031230541.28822-23-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031230541.28822-1-sashal@kernel.org> References: <20181031230541.28822-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Peddell [ Upstream commit 7567c2a2ad9e80a2ce977eef535e64b61899633e ] Forgot to include the maintainers with my first email. Somewhere between Michael Lyle's original "bcache: PI controller for writeback rate V2" patch dated 07 Sep 2017 and 1d316e6 bcache: implement PI controller for writeback rate, the mapping of the writeback_rate_minimum attribute was dropped. Re-add the missing sysfs writeback_rate_minimum attribute mapping to "allow the user to specify a minimum rate at which dirty blocks are retired." Fixes: 1d316e6 ("bcache: implement PI controller for writeback rate") Signed-off-by: Ben Peddell Signed-off-by: Coly Li Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/md/bcache/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 150cf4f4cf74..26f035a0c5b9 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -285,6 +285,7 @@ STORE(__cached_dev) 1, WRITEBACK_RATE_UPDATE_SECS_MAX); d_strtoul(writeback_rate_i_term_inverse); d_strtoul_nonzero(writeback_rate_p_term_inverse); + d_strtoul_nonzero(writeback_rate_minimum); sysfs_strtoul_clamp(io_error_limit, dc->error_limit, 0, INT_MAX); @@ -412,6 +413,7 @@ static struct attribute *bch_cached_dev_files[] = { &sysfs_writeback_rate_update_seconds, &sysfs_writeback_rate_i_term_inverse, &sysfs_writeback_rate_p_term_inverse, + &sysfs_writeback_rate_minimum, &sysfs_writeback_rate_debug, &sysfs_errors, &sysfs_io_error_limit, -- 2.17.1