Skip to contentSkip to conversation

blk-cgroup: remove unused blk_queue_for_each_rl stub

PATCH Superseded Tao Cui 3 participants 3 messages Jul 17 – Jul 23

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tao Cui

author
#0 lore raw

PATCH 1/1 blk-cgroup: remove unused blk_queue_for_each_rl stub

From: Tao Cui <[email protected]>

blk_queue_for_each_rl() was added by commit a051661ca6d1 ("blkcg:
implement per-blkg request allocation") to iterate over the root request list and per-blkg request lists for the legacy (non-blk-mq) request allocation path. The request_list code, including q->root_rl from struct request_queue, was later removed in 2018 by commit db6d99523560 ("block: remove request_list code").

The macro definition left behind in the !CONFIG_BLK_CGROUP fallback branch of the private block/blk-cgroup.h header now references the removed q->root_rl field, and has no callers in-tree (it would fail to compile if expanded, so it cannot have any out-of-tree users either).

Remove the dead stub.

---
 block/blk-cgroup.h | 3 ---
 1 file changed, 3 deletions(-)
block/blk-cgroup.h +0 -3
index 615390f751aa..6a309d2d3db5 100644
@@ -500,9 +500,6 @@ static inline void blkg_put(struct blkcg_gq *blkg) { }
 static inline void blk_cgroup_bio_start(struct bio *bio) { }
 static inline bool blk_cgroup_mergeable(struct request *rq, struct bio *bio) { return true; }
 
-#define blk_queue_for_each_rl(rl, q)	\
-	for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
-
 #endif	/* CONFIG_BLK_CGROUP */
 
 #endif /* _BLK_CGROUP_PRIVATE_H */
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Tao Cui

From: Tao Cui<[email protected]>

blk_queue_for_each_rl() was added by commit a051661ca6d1 ("blkcg:
implement per-blkg request allocation") to iterate over the root request list and per-blkg request lists for the legacy (non-blk-mq) request allocation path. The request_list code, including q->root_rl from struct request_queue, was later removed in 2018 by commit db6d99523560 ("block: remove request_list code").

The macro definition left behind in the !CONFIG_BLK_CGROUP fallback branch of the private block/blk-cgroup.h header now references the removed q->root_rl field, and has no callers in-tree (it would fail to compile if expanded, so it cannot have any out-of-tree users either).

Quoted 6 lines

Remove the dead stub.

---
  block/blk-cgroup.h | 3 ---
  1 file changed, 3 deletions(-)
Signature · 2 lines
Thanks,
Kuai
Reviewed-by on v1 1/1
#2 lore raw
In reply to Tao Cui
Quoted 26 lines · Tao Cui

From: Tao Cui <[email protected]>

blk_queue_for_each_rl() was added by commit a051661ca6d1 ("blkcg:
implement per-blkg request allocation") to iterate over the root request list and per-blkg request lists for the legacy (non-blk-mq) request allocation path. The request_list code, including q->root_rl from struct request_queue, was later removed in 2018 by commit db6d99523560 ("block: remove request_list code").

The macro definition left behind in the !CONFIG_BLK_CGROUP fallback branch of the private block/blk-cgroup.h header now references the removed q->root_rl field, and has no callers in-tree (it would fail to compile if expanded, so it cannot have any out-of-tree users either).

Remove the dead stub.

---
 block/blk-cgroup.h | 3 ---
 1 file changed, 3 deletions(-)
block/blk-cgroup.h +0 -0
index 615390f751aa..6a309d2d3db5 100644

block/blk-cgroup.h static inline void blkg_put(struct blkcg_gq *blkg) { } · line 505

Quoted 9 lines
block/blk-cgroup.h +0 -3
@@ -500,9 +500,6 @@ static inline void blkg_put(struct blkcg_gq *blkg) { }
 static inline void blk_cgroup_bio_start(struct bio *bio) { }
 static inline bool blk_cgroup_mergeable(struct request *rq, struct bio *bio) { return true; }
 
-#define blk_queue_for_each_rl(rl, q)	\
-	for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
-
 #endif	/* CONFIG_BLK_CGROUP */
 
 #endif /* _BLK_CGROUP_PRIVATE_H */
Signature · 2 lines
Best Regards,
Yi