]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/block/aoe/aoecmd.c
block: introduce new block status code type
[karo-tx-linux.git] / drivers / block / aoe / aoecmd.c
index 3c606c09fd5acbd2897c680c3249929f30b6a9a8..5bf0c9d21fc1d04ac725c9148e8d4c1babd7b263 100644 (file)
@@ -1071,7 +1071,7 @@ aoe_end_request(struct aoedev *d, struct request *rq, int fastfail)
        do {
                bio = rq->bio;
                bok = !fastfail && !bio->bi_error;
-       } while (__blk_end_request(rq, bok ? 0 : -EIO, bio->bi_iter.bi_size));
+       } while (__blk_end_request(rq, bok ? BLK_STS_OK : BLK_STS_IOERR, bio->bi_iter.bi_size));
 
        /* cf. http://lkml.org/lkml/2006/10/31/28 */
        if (!fastfail)