block, bfq: turn put_queue into release_process_ref in __bfq_bic_change_cgroup
authorPaolo Valente <paolo.valente@linaro.org>
Sat, 21 Mar 2020 09:45:19 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:26 +0000 (10:36 +0200)
commitad749ca022ad4b5165e636cc74695e43fa43f9b9
treed38c49f6551b8f2cf048f585a31e07a154d1bb8a
parent00d3928737712c0dcfae6019693cb889dd8e8445
block, bfq: turn put_queue into release_process_ref in __bfq_bic_change_cgroup

commit c8997736650060594845e42c5d01d3118aec8d25 upstream.

A bfq_put_queue() may be invoked in __bfq_bic_change_cgroup(). The
goal of this put is to release a process reference to a bfq_queue. But
process-reference releases may trigger also some extra operation, and,
to this goal, are handled through bfq_release_process_ref(). So, turn
the invocation of bfq_put_queue() into an invocation of
bfq_release_process_ref().

Tested-by: cki-project@redhat.com
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/bfq-cgroup.c
block/bfq-iosched.c
block/bfq-iosched.h