]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bcache: fix mistaken sysfs entry for io_error counter
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:43 +0000 (19:59 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit3fa1f42b4c6764103ff7594f9f10b4e23167ae13
treef61f3388248429af1bc1ba67cb5da177893cd570
parent8997f8a1e636aeab4ee4e5e57913a2b8bb2c821b
bcache: fix mistaken sysfs entry for io_error counter

BugLink: https://bugs.launchpad.net/bugs/1839036
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<N>/bcache/io_errors.

Fixes: c7b7bd07404c5 ("bcache: add io_disable to struct cached_dev")
Signed-off-by: Coly Li <colyli@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/md/bcache/sysfs.c