mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
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 commitf2298c0403
("null_blk: multi queue aware block test driver"). The 'll_list' is no longer used since commit3c395a969a
("null_blk: set a separate timer for each command"). The 'csd' is no longer used since commitce2c350b2c
("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>
This commit is contained in:
parent
c780e86dd4
commit
93d7c31858
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user