]> git.baikalelectronics.ru Git - kernel.git/commit
blk-rq-qos: fix first node deletion of rq_qos_del()
authorTejun Heo <tj@kernel.org>
Tue, 15 Oct 2019 15:49:27 +0000 (08:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Oct 2019 16:13:13 +0000 (10:13 -0600)
commit7243fad31bdcf86eb08ba5586835cbf933407f80
tree484ebf28578ff8532703c1b8d47b37f00120b052
parentcad152e6e9874355ddc49d7a54e83ea24178eef9
blk-rq-qos: fix first node deletion of rq_qos_del()

rq_qos_del() incorrectly assigns the node being deleted to the head if
it was the first on the list in the !prev path.  Fix it by iterating
with ** instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Josef Bacik <josef@toxicpanda.com>
Fixes: d46f09e2072b ("blk-rq-qos: refactor out common elements of blk-wbt")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-rq-qos.h