diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-16 08:33:16 -0600 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-16 17:48:35 -0400 |
commit | 8d849275dce493837792a70f710f6bd83c8db5c0 (patch) | |
tree | 041e6fe5304a16fcf0991f5174c14120c5d3db18 | |
parent | 5d25ff7a544889bc4b749fda31778d6a18dddbcb (diff) | |
download | linux-stable-8d849275dce493837792a70f710f6bd83c8db5c0.tar.gz linux-stable-8d849275dce493837792a70f710f6bd83c8db5c0.tar.bz2 linux-stable-8d849275dce493837792a70f710f6bd83c8db5c0.zip |
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>
-rw-r--r-- | drivers/scsi/osd/osd_initiator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c index 67b14576fff2..e19fa883376f 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c @@ -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); } |