Commit 7f43f610 authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman

block: kyber: fix domain token leak during requeue

commit ba989a01 upstream.

When requeuing request, the domain token should have been freed
before re-inserting the request to io scheduler. Otherwise, the
assigned domain token will be leaked, and IO hang can be caused.

Cc: Paolo Valente <>
Cc: Omar Sandoval <>
Reviewed-by: default avatarBart Van Assche <>
Signed-off-by: default avatarMing Lei <>
Signed-off-by: default avatarJens Axboe <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 17644a0b
......@@ -814,6 +814,7 @@ static struct elevator_type kyber_sched = {
.limit_depth = kyber_limit_depth,
.prepare_request = kyber_prepare_request,
.finish_request = kyber_finish_request,
.requeue_request = kyber_finish_request,
.completed_request = kyber_completed_request,
.dispatch_request = kyber_dispatch_request,
.has_work = kyber_has_work,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment