]> git.baikalelectronics.ru Git - kernel.git/commit
md: simplify code with bio_io_error
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 21 Jul 2017 08:33:44 +0000 (16:33 +0800)
committerShaohua Li <shli@fb.com>
Fri, 21 Jul 2017 20:16:52 +0000 (13:16 -0700)
commit70b82b0af3c1df1aa52719a4276e8a0e3ce4bbf9
tree1e30879970b4311e7cfa75b2e90e0192173a1ef4
parent37f7c05f0ac3c0ee5960d39c5d0c3b0fec85585c
md: simplify code with bio_io_error

Since bio_io_error sets bi_status to BLK_STS_IOERR,
and calls bio_endio, so we can use it directly.

And as mentioned by Shaohua, there are also two
places in raid5.c can use bio_io_error either.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c