Commit 8d849275 authored by Jens Axboe's avatar Jens Axboe Committed by Martin K. Petersen

scsi: osd: initiator should use mq variant of request ending

This is currently wrong since it isn't dependent on if we're using mq or
not. At least now it'll be correct when we force mq.

Cc: linux-scsi@vger.kernel.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5d25ff7a
...@@ -445,7 +445,7 @@ static void _put_request(struct request *rq) ...@@ -445,7 +445,7 @@ static void _put_request(struct request *rq)
* code paths. * code paths.
*/ */
if (unlikely(rq->bio)) if (unlikely(rq->bio))
blk_end_request(rq, BLK_STS_IOERR, blk_rq_bytes(rq)); blk_mq_end_request(rq, BLK_STS_IOERR);
else else
blk_put_request(rq); blk_put_request(rq);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment