Skip to content

Commit dc8cbb6

Browse files
committed
block: remove dead struc request->completion_data field
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 <[email protected]>
1 parent 2fb48d8 commit dc8cbb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/blk-mq.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ struct request {
158158

159159
/*
160160
* The rb_node is only used inside the io scheduler, requests
161-
* are pruned when moved to the dispatch queue. So let the
162-
* completion_data share space with the rb_node.
161+
* are pruned when moved to the dispatch queue. special_vec must
162+
* only be used if RQF_SPECIAL_PAYLOAD is set, and those cannot be
163+
* insert into an IO scheduler.
163164
*/
164165
union {
165166
struct rb_node rb_node; /* sort/lookup */
166167
struct bio_vec special_vec;
167-
void *completion_data;
168168
};
169169

170170
/*

0 commit comments

Comments
 (0)