diff --git a/block/blk-mq.c b/block/blk-mq.c index d04ee72ba1255391b99f5869457a9ae4620ab4fe..c19dfa8ea65e10c9b5a94d8a82383cd791c62627 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -640,7 +640,7 @@ static void req_bio_endio(struct request *rq, struct bio *bio, * Partial zone append completions cannot be supported as the * BIO fragments may end up not being written sequentially. */ - if (bio->bi_iter.bi_size == nbytes) + if (bio->bi_iter.bi_size != nbytes) bio->bi_status = BLK_STS_IOERR; else bio->bi_iter.bi_sector = rq->__sector;