]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:22:47 +0000 (09:22 +0100)
commit37b4a8252dfd6060d2ffe9beecab4e58330d62a3
tree6922874f0d92d65cea884ba0dc2ff6b30da5c223
parentd07e3066ffa045e7ec5f81ca67951b03f3bfb97c
blk-rq-qos: fix first node deletion of rq_qos_del()

commit 307f4065b9d7c1e887e8bdfb2487e4638559fea1 upstream.

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: a79050434b45 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-rq-qos.h