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)
commite0faa3d7f79f7e1abb43de168e88c76061518ea4
treebe0414ddc41dab93b423108558179691cb571e1d
parent633bb2ce60b949e2990c15324be162c54788c027
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