Skip to content

Commit

Permalink
block: remove dead struc request->completion_data field
Browse files Browse the repository at this point in the history
It's no longer used. While in there, also update the comment as to why
it can coexist with the rb_node.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Jul 10, 2023
1 parent 2fb48d8 commit dc8cbb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ struct request {

/*
* The rb_node is only used inside the io scheduler, requests
* are pruned when moved to the dispatch queue. So let the
* completion_data share space with the rb_node.
* are pruned when moved to the dispatch queue. special_vec must
* only be used if RQF_SPECIAL_PAYLOAD is set, and those cannot be
* insert into an IO scheduler.
*/
union {
struct rb_node rb_node; /* sort/lookup */
struct bio_vec special_vec;
void *completion_data;
};

/*
Expand Down

0 comments on commit dc8cbb6

Please sign in to comment.