Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3486373imu; Sun, 11 Nov 2018 16:11:25 -0800 (PST) X-Google-Smtp-Source: AJdET5cHjWTGymJi5kj9EMAM35BeIU4+ucIk2rs18P9s/2aC2CpzsKzHPP7DwO2YOCHSPcTHBuqc X-Received: by 2002:a63:554b:: with SMTP id f11mr5948660pgm.37.1541981485161; Sun, 11 Nov 2018 16:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981485; cv=none; d=google.com; s=arc-20160816; b=K4N+vKHKNwXQ1LgYabv82I5cPsssrx9Zjs4LKJ5uAsWgMMaMH1oOHzADn1soPo34+B ZTTq31i+U2agl+xCPMpL0mUNpDrNs3eEEZVrNvWCf063rD9//C38Xr+IXyUxfawu4cLd oRr12YHRWi3cg0/OQ9piYGzasBWI1xC2kQ9/5pVMTWuqTzuGqEdcYCIlxZL8ORlJHjmw ZKaPwOHCG8+TjNMQHgbD0jylFqid9C4qYHspX9UGxifsOsMMosRREPhLsEpSOHj20JHn w4a4FnZGm+9Vk1hBVfGtJRDIWCaAi6U19UeAm/gPBag6VBk2Ix5H2SL2cw3Lb72O6Tpe NOeQ== 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=o1SGRbbm5azaTLOCTmnyxrN5ubrEYH224ztIAbYP+Ww=; b=PurllqlfPyc3c/X6vb+IWCnS44jia3KcHbAcLRe5Rw0ogQq+AuVAofKhq+H6po8FnS y1+BHPrTrhFgpwIC8acKcGtZ4mv+JR7GXKHK2FoPHLpIzr3ljeFtraoVuxuvnOFFXGBW MvCHCobSsV/jadUha+OvvkX3urN/e7QIpE1lpN5XOZxtX1SLVK8cbHIGEmneJY8dhLPl EMGCXmOwpTcR4DeplEhczYIVYGDa4KZ+uJxjuM6F70gCsm9IGSkP3QSkndqDGRaLqWZV ZJcmNn4nKxdf9NomD+5I2c1gEx5LjBfYsEcMnYiq5DkzgGZG/cwiYmiW6JcJacOaDeIM tZng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mToKzI7+; 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 d3si1960158pgu.437.2018.11.11.16.11.10; Sun, 11 Nov 2018 16:11:25 -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=pass header.i=@kernel.org header.s=default header.b=mToKzI7+; 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 S1730804AbeKLIRY (ORCPT + 99 others); Mon, 12 Nov 2018 03:17:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:59904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730704AbeKLIRW (ORCPT ); Mon, 12 Nov 2018 03:17:22 -0500 Received: from localhost (unknown [206.108.79.134]) (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 2C69421722; Sun, 11 Nov 2018 22:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975247; bh=QBQcP4/n5qSIQTjF5iALs+nYc0r1ICaMnizaYIQ4y9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mToKzI7+3X0bDGIpQIJyvlkyWw71+WSNgwX7HIN3deqFL4XhYqEG4tsS3XY2oLdCQ B9ZGRaEajdGHRfhaspkvjjfnAul3Yqved4xCPTW2AZxOHjZNKlYUPeu1uisOi8SvIC SBJh3eaxMo6nTOwhw8NlmNoaY+CCQ/0Jlt4NRwDE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Peddell , Coly Li , Jens Axboe , Sasha Levin Subject: [PATCH 4.19 069/361] bcache: Populate writeback_rate_minimum attribute Date: Sun, 11 Nov 2018 14:16:56 -0800 Message-Id: <20181111221629.702604471@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/md/bcache/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) --- 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_ &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,