bcache: check return value of prio_read()
authorColy Li <colyli@suse.de>
Sat, 1 Feb 2020 14:42:35 +0000 (22:42 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Feb 2020 14:55:39 +0000 (07:55 -0700)
commit49d08d596e85f39ded48e85df362827cbab1f5ae
tree7e88c0de2e2898cfba9d41fede5424825d2b67b3
parentd1c3cc34f5a78b38d2b809b289d912c3560545df
bcache: check return value of prio_read()

Now if prio_read() failed during starting a cache set, we can print
out error message in run_cache_set() and handle the failure properly.

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