]> 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)
commitdfd556a67ef2b0c87e9118f1d1a503dda6d940c9
treebe0414ddc41dab93b423108558179691cb571e1d
parentc280958f2e7cd63f43068d4f360c7fdef159ee17
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