aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchengkaitao <chengkaitao@kylinos.cn>2025-09-15 20:33:07 +0800
committerJens Axboe <axboe@kernel.dk>2025-09-15 13:00:05 -0600
commit74b1db86847cce1c0fb54d362f8f5fde3adfd41b (patch)
treea1a1a4204e04e79d547d55f0b6f2a2177da3cebe
parentmd/md-llbitmap: Use DIV_ROUND_UP_SECTOR_T (diff)
downloadlinux-74b1db86847cce1c0fb54d362f8f5fde3adfd41b.tar.gz
linux-74b1db86847cce1c0fb54d362f8f5fde3adfd41b.zip
block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos().
In commit(fde02699c242), the "if (blk_rq_is_seq_zoned_write(rq))" was removed, but the "rb_entry_rq(node)" and some other code were inadvertently left behind. This patch fixed it. Signed-off-by: chengkaitao <chengkaitao@kylinos.cn> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Li Nan <linan122@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/mq-deadline.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/block/mq-deadline.c b/block/mq-deadline.c
index 2e689b2c4021..3e741d33142d 100644
--- a/block/mq-deadline.c
+++ b/block/mq-deadline.c
@@ -136,10 +136,6 @@ static inline struct request *deadline_from_pos(struct dd_per_prio *per_prio,
struct rb_node *node = per_prio->sort_list[data_dir].rb_node;
struct request *rq, *res = NULL;
- if (!node)
- return NULL;
-
- rq = rb_entry_rq(node);
while (node) {
rq = rb_entry_rq(node);
if (blk_rq_pos(rq) >= pos) {