Commit 93d7c318 authored by Dongli Zhang's avatar Dongli Zhang Committed by Jens Axboe

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 f2298c04
("null_blk: multi queue aware block test driver").

The 'll_list' is no longer used since commit 3c395a96 ("null_blk: set a
separate timer for each command").

The 'csd' is no longer used since commit ce2c350b ("null_blk: use
blk_complete_request and blk_mq_complete_request").
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarDongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c780e86d
......@@ -14,9 +14,6 @@
#include <linux/fault-inject.h>
struct nullb_cmd {
struct list_head list;
struct llist_node ll_list;
struct __call_single_data csd;
struct request *rq;
struct bio *bio;
unsigned int tag;
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment