projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3914d5
)
md: print errno in super_written
author
Guoqing Jiang
<guoqing.jiang@cloud.ionos.com>
Tue, 28 Jul 2020 10:01:41 +0000
(12:01 +0200)
committer
Song Liu
<songliubraving@fb.com>
Mon, 3 Aug 2020 06:03:51 +0000
(23:03 -0700)
It is better to print errno instead of bi_status.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 5116d29b74e1a1677925e1809c4d90c4e425c163..9c69084cae7388172930bb61cc3ce23be1c04bf7 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-978,7
+978,8
@@
static void super_written(struct bio *bio)
struct mddev *mddev = rdev->mddev;
if (bio->bi_status) {
- pr_err("md: super_written gets error=%d\n", bio->bi_status);
+ pr_err("md: %s gets error=%d\n", __func__,
+ blk_status_to_errno(bio->bi_status));
md_error(mddev, rdev);
if (!test_bit(Faulty, &rdev->flags)
&& (bio->bi_opf & MD_FAILFAST)) {