diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 2 | ||||
| -rw-r--r-- | drivers/block/null_blk.c | 2 | ||||
| -rw-r--r-- | drivers/block/virtio_blk.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/scsi_lib.c | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 0e2084f37c67..4042440a0470 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
| @@ -3783,6 +3783,8 @@ static int mtip_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *rq, | |||
| 3783 | if (unlikely(mtip_check_unal_depth(hctx, rq))) | 3783 | if (unlikely(mtip_check_unal_depth(hctx, rq))) |
| 3784 | return BLK_MQ_RQ_QUEUE_BUSY; | 3784 | return BLK_MQ_RQ_QUEUE_BUSY; |
| 3785 | 3785 | ||
| 3786 | blk_mq_start_request(rq); | ||
| 3787 | |||
| 3786 | ret = mtip_submit_request(hctx, rq); | 3788 | ret = mtip_submit_request(hctx, rq); |
| 3787 | if (likely(!ret)) | 3789 | if (likely(!ret)) |
| 3788 | return BLK_MQ_RQ_QUEUE_OK; | 3790 | return BLK_MQ_RQ_QUEUE_OK; |
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index c5b7315c2c13..332ce20d45da 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c | |||
| @@ -321,6 +321,8 @@ static int null_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *rq, | |||
| 321 | cmd->rq = rq; | 321 | cmd->rq = rq; |
| 322 | cmd->nq = hctx->driver_data; | 322 | cmd->nq = hctx->driver_data; |
| 323 | 323 | ||
| 324 | blk_mq_start_request(rq); | ||
| 325 | |||
| 324 | null_handle_cmd(cmd); | 326 | null_handle_cmd(cmd); |
| 325 | return BLK_MQ_RQ_QUEUE_OK; | 327 | return BLK_MQ_RQ_QUEUE_OK; |
| 326 | } | 328 | } |
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 13756e016797..83816bf6882f 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c | |||
| @@ -205,6 +205,8 @@ static int virtio_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req, | |||
| 205 | } | 205 | } |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | blk_mq_start_request(req); | ||
| 209 | |||
| 208 | num = blk_rq_map_sg(hctx->queue, vbr->req, vbr->sg); | 210 | num = blk_rq_map_sg(hctx->queue, vbr->req, vbr->sg); |
| 209 | if (num) { | 211 | if (num) { |
| 210 | if (rq_data_dir(vbr->req) == WRITE) | 212 | if (rq_data_dir(vbr->req) == WRITE) |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index f1df41168391..2dcd9078de48 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
| @@ -1890,6 +1890,7 @@ static int scsi_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req, | |||
| 1890 | scsi_init_cmd_errh(cmd); | 1890 | scsi_init_cmd_errh(cmd); |
| 1891 | cmd->scsi_done = scsi_mq_done; | 1891 | cmd->scsi_done = scsi_mq_done; |
| 1892 | 1892 | ||
| 1893 | blk_mq_start_request(req); | ||
| 1893 | reason = scsi_dispatch_cmd(cmd); | 1894 | reason = scsi_dispatch_cmd(cmd); |
| 1894 | if (reason) { | 1895 | if (reason) { |
| 1895 | scsi_set_blocked(cmd, reason); | 1896 | scsi_set_blocked(cmd, reason); |
