projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
105976f
)
block: kyber: fix domain token leak during requeue
author
Ming Lei
<
[email protected]
>
Fri, 23 Feb 2018 15:36:57 +0000
(23:36 +0800)
committer
Jens Axboe
<
[email protected]
>
Sat, 24 Feb 2018 22:55:54 +0000
(15:55 -0700)
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 <
[email protected]
>
Cc: Omar Sandoval <
[email protected]
>
Cc:
[email protected]
Reviewed-by: Bart Van Assche <
[email protected]
>
Signed-off-by: Ming Lei <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
block/kyber-iosched.c
patch
|
blob
|
history
diff --git
a/block/kyber-iosched.c
b/block/kyber-iosched.c
index f95c60774ce8ca613417d3ccf54bee52010752ee..0d6d25e32e1f44fda0049bb3e213b85a3debfa1f 100644
(file)
--- a/
block/kyber-iosched.c
+++ b/
block/kyber-iosched.c
@@
-833,6
+833,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,