Skip to content

Commit 93d7c31

Browse files
Dongli Zhangaxboe
authored andcommitted
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 f2298c0 ("null_blk: multi queue aware block test driver"). The 'll_list' is no longer used since commit 3c395a9 ("null_blk: set a separate timer for each command"). The 'csd' is no longer used since commit ce2c350 ("null_blk: use blk_complete_request and blk_mq_complete_request"). Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Dongli Zhang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent c780e86 commit 93d7c31

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

drivers/block/null_blk.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
#include <linux/fault-inject.h>
1515

1616
struct nullb_cmd {
17-
struct list_head list;
18-
struct llist_node ll_list;
19-
struct __call_single_data csd;
2017
struct request *rq;
2118
struct bio *bio;
2219
unsigned int tag;

drivers/block/null_blk_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,6 @@ static int setup_commands(struct nullb_queue *nq)
15181518

15191519
for (i = 0; i < nq->queue_depth; i++) {
15201520
cmd = &nq->cmds[i];
1521-
INIT_LIST_HEAD(&cmd->list);
1522-
cmd->ll_list.next = NULL;
15231521
cmd->tag = -1U;
15241522
}
15251523

0 commit comments

Comments
 (0)