mirror of https://gitee.com/openkylin/linux.git
md: print errno in super_written
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>
This commit is contained in:
parent
e3914d596f
commit
b3db8a2163
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue