All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: simplify code with bio_io_error
@ 2017-06-02  8:19 Guoqing Jiang
  0 siblings, 0 replies; only message in thread
From: Guoqing Jiang @ 2017-06-02  8:19 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, Guoqing Jiang

bio_io_error was introduced in the commit 4246a0b
("block: add a bi_error field to struct bio"), so
use it directly.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
---
 block/blk-core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index c706852..92bc663 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1662,8 +1662,7 @@ static blk_qc_t blk_queue_bio(struct request_queue *q, struct bio *bio)
 	blk_queue_split(q, &bio, q->bio_split);
 
 	if (bio_integrity_enabled(bio) && bio_integrity_prep(bio)) {
-		bio->bi_error = -EIO;
-		bio_endio(bio);
+		bio_io_error(bio);
 		return BLK_QC_T_NONE;
 	}
 
-- 
2.10.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-02  8:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02  8:19 [PATCH] block: simplify code with bio_io_error Guoqing Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.