Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10425356ybi; Wed, 24 Jul 2019 23:00:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLUcZFIWB8kNqb38AepYrb9oHT54ejbpO42HX5tU4DInm/jrEtTyztd90sgR3dHO952evK X-Received: by 2002:a62:8344:: with SMTP id h65mr14972571pfe.85.1564034427468; Wed, 24 Jul 2019 23:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034427; cv=none; d=google.com; s=arc-20160816; b=pcp+K1JGD/O6Bf4HmrRT6xbf3kHrK+W6lEb0IhMPKhTNvnFGg38jeHWV1XVwHuJcXf kv5CS+YR0gk/qK55cUF11hfsleERfmx617jnObPJxDA9qZFUV4FR421ZlmIMe7zLzprL Xb+QweWjSsHLCuH/1SRZumjZAe5zy+6ACBXGahsy8Kq9eNzk0ruIehyMoof/XWDycIIj vPlSncfIJ+/Z0NoJl5Z+0G6+sqnXN4KltBFTu1ocPs4fPEjuso51SCp0dgBolH7qLU/6 pco6yb3maEHODeG3P9koPo6HI1nkKUsCUpe100SdrRhT4ERssPNkmfVnHqWtNQoeII7+ emsg== 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=/b7qAecyZj8Hvn2vjhtHu/U/X/SklWYO0uKjRS5NWbI=; b=CDB7VqCOcI4QvpemA3IaBZcqbLmRhUjckzd4bufAu3JjfREEzkv296pJJ2cOBMNB0n XvovFLZhG7H2bXvM1TZlZ6f5ZtvZigFPlQs92j5dqEOKaZMVhdMCeI+XK8O5XRtm7p8S 8+NfJfdT9DUlFtE1vRot1zoP+YseDjKZoEiVi8lwKjfFL+uZz77AyznHs2LHerG3zPes C3Dzlz/NmDJUNc5WbUAF2mqq46UV5w0vCqhHLDqjkARadHNDh3pdFjX/Opfy0CiimZ5T iENq4EnEv6F9ZjoeQzEms/y0ygAurwAY43UP3nsTRtAmMq4Fl8arSSnPdgybQU3+icU7 xS2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gg2rFVOt; 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 r17si16687430pgr.277.2019.07.24.23.00.12; Wed, 24 Jul 2019 23:00:27 -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=gg2rFVOt; 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 S2404864AbfGYFnD (ORCPT + 99 others); Thu, 25 Jul 2019 01:43:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:57950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390976AbfGYFm7 (ORCPT ); Thu, 25 Jul 2019 01:42:59 -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 2469B22C7C; Thu, 25 Jul 2019 05:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033378; bh=pmkVIllkbG370/6M52zBITjYZF5DFjYWiNDBziqlTIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gg2rFVOtLXvOoV+At5d5jQ//Utc9ETEI13DMjZP5ttYeY2WF/iyFVchuqDQONrndY ekBka0RDKMxET0WzoQJsCC9vXV2MRyswep8jGo13H+yKOHS7X6OgmxzMDSDDJ7gmWE 4O4ubx27cm1BxlahtorZm+NygLhwFN12YhbRkMJY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Coly Li , Jens Axboe Subject: [PATCH 4.19 187/271] bcache: fix mistaken sysfs entry for io_error counter Date: Wed, 24 Jul 2019 21:20:56 +0200 Message-Id: <20190724191711.152341158@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: Coly Li commit 5461999848e0462c14f306a62923d22de820a59c upstream. In bch_cached_dev_files[] from driver/md/bcache/sysfs.c, sysfs_errors is incorrectly inserted in. The correct entry should be sysfs_io_errors. This patch fixes the problem and now I/O errors of cached device can be read from /sys/block/bcache/bcache/io_errors. Fixes: c7b7bd07404c5 ("bcache: add io_disable to struct cached_dev") Signed-off-by: Coly Li Cc: stable@vger.kernel.org Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/md/bcache/sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -175,7 +175,7 @@ SHOW(__bch_cached_dev) var_print(writeback_percent); sysfs_hprint(writeback_rate, wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0); - sysfs_hprint(io_errors, atomic_read(&dc->io_errors)); + sysfs_printf(io_errors, "%i", atomic_read(&dc->io_errors)); sysfs_printf(io_error_limit, "%i", dc->error_limit); sysfs_printf(io_disable, "%i", dc->io_disable); var_print(writeback_rate_update_seconds); @@ -426,7 +426,7 @@ static struct attribute *bch_cached_dev_ &sysfs_writeback_rate_p_term_inverse, &sysfs_writeback_rate_minimum, &sysfs_writeback_rate_debug, - &sysfs_errors, + &sysfs_io_errors, &sysfs_io_error_limit, &sysfs_io_disable, &sysfs_dirty_data,