blk-mq: remove REQ_END
Pass an explicit parameter for the last request in a batch to ->queue_rq instead of using a request flag. Besides being a cleaner and non-stateful interface this is also required for the next patch, which fixes the blk-mq I/O submission code to not start a time too early. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
committed by
Jens Axboe
parent
6d11fb454b
commit
bf57229745
@@ -1855,7 +1855,8 @@ static void scsi_mq_done(struct scsi_cmnd *cmd)
|
||||
blk_mq_complete_request(cmd->request);
|
||||
}
|
||||
|
||||
static int scsi_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req)
|
||||
static int scsi_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req,
|
||||
bool last)
|
||||
{
|
||||
struct request_queue *q = req->q;
|
||||
struct scsi_device *sdev = q->queuedata;
|
||||
|
Reference in New Issue
Block a user