]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:27 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:14 +0000 (07:39 -0600)
commit5519f19b4265ff1f52e5c6c5e9f39e1f238b7765
tree965f6c4b27022c0fe4fd4d151d8c20b530f52c55
parent72e2adb3363cc38e7cef706ec8846515c34aa017
Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"

This reverts commit cf4a23ab02c93ace2dc478a37dd97ad9033980bf.

Although this patch helps the failed bcache device to stop faster when
too many I/O errors detected on corresponding cached device, setting
CACHE_SET_IO_DISABLE bit to cache set c->flags was not a good idea. This
operation will disable all I/Os on cache set, which means other attached
bcache devices won't work neither.

Without this patch, the failed bcache device can also be stopped
eventually if internal I/O accomplished (e.g. writeback). Therefore here
I revert it.

Fixes: cf4a23ab02c9 ("bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()")
Reported-by: Yong Li <mr.liyong@qq.com>
Signed-off-by: Coly Li <colyli@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c