OpenCloudOS-Kernel/drivers/md/bcache
Coly Li 09a44ca211 bcache: use pr_info() to inform duplicated CACHE_SET_IO_DISABLE set
It is possible that multiple I/O requests hits on failed cache device or
backing device, therefore it is quite common that CACHE_SET_IO_DISABLE is
set already when a task tries to set the bit from bch_cache_set_error().
Currently the message "CACHE_SET_IO_DISABLE already set" is printed by
pr_warn(), which might mislead users to think a serious fault happens in
source code.

This patch uses pr_info() to print the information in such situation,
avoid extra worries. This information is helpful to understand bcache
behavior in cache device failures, so I still keep them in source code.

Fixes: 771f393e8f ("bcache: add CACHE_SET_IO_DISABLE to struct cache_set flags")
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-05-03 08:35:16 -06:00
..
Kconfig bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
alloc.c bcache: add wait_for_kthread_stop() in bch_allocator_thread() 2018-05-03 08:35:13 -06:00
bcache.h bcache: store disk name in struct cache and struct cached_dev 2018-05-03 08:35:08 -06:00
bset.c bcache: Suppress more warnings about set-but-not-used variables 2018-03-18 20:15:20 -06:00
bset.h bcache: Add __printf annotation to __bch_check_keys() 2018-03-18 20:15:20 -06:00
btree.c bcache: Fix kernel-doc warnings 2018-03-18 20:15:20 -06:00
btree.h Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00
closure.c bcache: Fix kernel-doc warnings 2018-03-18 20:15:20 -06:00
closure.h bcache: move closure debug file into debug directory 2018-03-18 20:15:20 -06:00
debug.c bcache: store disk name in struct cache and struct cached_dev 2018-05-03 08:35:08 -06:00
debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
extents.c bcache: Remove an unused variable 2018-03-18 20:15:20 -06:00
extents.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
io.c bcache: store disk name in struct cache and struct cached_dev 2018-05-03 08:35:08 -06:00
journal.c bcache: Reduce the number of sparse complaints about lock imbalances 2018-03-18 20:15:20 -06:00
journal.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
movinggc.c block: move bio_alloc_pages() to bcache 2018-01-06 09:18:00 -07:00
request.c bcache: store disk name in struct cache and struct cached_dev 2018-05-03 08:35:08 -06:00
request.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stats.c md: Convert timers to use timer_setup() 2017-11-14 20:11:57 -07:00
stats.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
super.c bcache: use pr_info() to inform duplicated CACHE_SET_IO_DISABLE set 2018-05-03 08:35:16 -06:00
sysfs.c bcache: add io_disable to struct cached_dev 2018-03-18 20:15:20 -06:00
sysfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
util.c bcache: Fix kernel-doc warnings 2018-03-18 20:15:20 -06:00
util.h bcache: add CACHE_SET_IO_DISABLE to struct cache_set flags 2018-03-18 20:15:20 -06:00
writeback.c bcache: count backing device I/O error for writeback I/O 2018-05-03 08:35:12 -06:00
writeback.h bcache: Fix indentation 2018-03-18 20:15:20 -06:00