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: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Jens Axboe 2018-10-16 08:33:16 -06:00 коммит произвёл Martin K. Petersen
Родитель 5d25ff7a54
Коммит 8d849275dc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -445,7 +445,7 @@ static void _put_request(struct request *rq)
* code paths.
*/
if (unlikely(rq->bio))
blk_end_request(rq, BLK_STS_IOERR, blk_rq_bytes(rq));
blk_mq_end_request(rq, BLK_STS_IOERR);
else
blk_put_request(rq);
}