diff options
author | Dongli Zhang | 2020-02-24 10:39:11 -0800 |
---|---|---|
committer | Jens Axboe | 2020-02-25 09:43:29 -0700 |
commit | 93d7c3185893b185e7f4347f8986b9b521254a6e (patch) | |
tree | 59f7e168de1660cd5070c54bb099f1dc0ee274e8 /drivers/block/null_blk_main.c | |
parent | c780e86dd48ef6467a1146cf7d0fe1e05a635039 (diff) |
null_blk: remove unused fields in 'nullb_cmd'
'list', 'll_list' and 'csd' are no longer used.
The 'list' is not used since it was introduced by commit f2298c0403b0
("null_blk: multi queue aware block test driver").
The 'll_list' is no longer used since commit 3c395a969acc ("null_blk: set a
separate timer for each command").
The 'csd' is no longer used since commit ce2c350b2cfe ("null_blk: use
blk_complete_request and blk_mq_complete_request").
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk_main.c')
-rw-r--r-- | drivers/block/null_blk_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c index 16510795e377..133060431dbd 100644 --- a/drivers/block/null_blk_main.c +++ b/drivers/block/null_blk_main.c @@ -1518,8 +1518,6 @@ static int setup_commands(struct nullb_queue *nq) for (i = 0; i < nq->queue_depth; i++) { cmd = &nq->cmds[i]; - INIT_LIST_HEAD(&cmd->list); - cmd->ll_list.next = NULL; cmd->tag = -1U; } |