]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: improve error message in bch_cached_dev_run()
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:39 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:15 +0000 (07:39 -0600)
commit7c0b9871419e5d5193e4b435a4c8d7553cb14597
treebe0414ddc41dab93b423108558179691cb571e1d
parent17e8d43ecdc88cd94f2952feaf3610b5c175412e
bcache: improve error message in bch_cached_dev_run()

This patch adds more error message in bch_cached_dev_run() to indicate
the exact reason why an error value is returned. Please notice when
printing out the "is running already" message, pr_info() is used here,
because in this case also -EBUSY is returned, the bcache device can
continue to attach to the cache devince and run, so it won't be an
error level message in kernel message.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c