|
@@ -606,12 +606,8 @@ static struct nullb_cmd *alloc_cmd(struct nullb_queue *nq, int can_wait)
|
|
|
|
|
|
static void end_cmd(struct nullb_cmd *cmd)
|
|
static void end_cmd(struct nullb_cmd *cmd)
|
|
{
|
|
{
|
|
- struct request_queue *q = NULL;
|
|
|
|
int queue_mode = cmd->nq->dev->queue_mode;
|
|
int queue_mode = cmd->nq->dev->queue_mode;
|
|
|
|
|
|
- if (cmd->rq)
|
|
|
|
- q = cmd->rq->q;
|
|
|
|
-
|
|
|
|
switch (queue_mode) {
|
|
switch (queue_mode) {
|
|
case NULL_Q_MQ:
|
|
case NULL_Q_MQ:
|
|
blk_mq_end_request(cmd->rq, cmd->error);
|
|
blk_mq_end_request(cmd->rq, cmd->error);
|