Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

chengkaitao and committed by
Jens Axboe
74b1db86 7935b843

-4
-4
block/mq-deadline.c
··· 136 136 struct rb_node *node = per_prio->sort_list[data_dir].rb_node; 137 137 struct request *rq, *res = NULL; 138 138 139 - if (!node) 140 - return NULL; 141 - 142 - rq = rb_entry_rq(node); 143 139 while (node) { 144 140 rq = rb_entry_rq(node); 145 141 if (blk_rq_pos(rq) >= pos) {