]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
block: kyber: fix domain token leak during requeue
authorMing Lei <ming.lei@redhat.com>
Fri, 23 Feb 2018 15:36:57 +0000 (23:36 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:27:41 +0000 (08:27 -0500)
commitb5d69cc39be42a0a3c43e23c221f44ba1e235e64
tree489539f7ff56bd37a56aeee77d47ef4aa4f5b514
parent6b257c4638900cc5238fca2d2ab6ac298771effa
block: kyber: fix domain token leak during requeue

BugLink: http://bugs.launchpad.net/bugs/1755179
commit ba989a01469d027861e55c8f1121edadef757797 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 <paolo.valente@linaro.org>
Cc: Omar Sandoval <osandov@fb.com>
Cc: stable@vger.kernel.org
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
block/kyber-iosched.c