Repository navigation
Commit 2e48a53
committed
blk-throttle: make throtl_pending_timer_fn() ready for hierarchy
throtl_pending_timer_fn() currently assumes that the parent_sq is the
top level one and the bio's dispatched are ready to be issued;
however, this assumption will be wrong with proper hierarchy support.
This patch makes the following changes to make
throtl_pending_timer_fn() ready for hiearchy.
* If the parent_sq isn't the top-level one, update the parent
throtl_grp's dispatch time and schedule the next dispatch as
necessary. If the parent's dispatch time is now, repeat the
function for the parent throtl_grp.
* If the parent_sq is the top-level one, kick issue work_item as
before.
* The debug message printed by throtl_log() now prints out the
service_queue's nr_queued[] instead of the total nr_queued as the
latter becomes uninteresting and misleading with hierarchical
dispatch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>1 parent 6bc9c2b commit 2e48a53
1 file changed
Lines changed: 33 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
956 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
957 | 962 | | |
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
| 966 | + | |
961 | 967 | | |
962 | 968 | | |
963 | | - | |
| 969 | + | |
| 970 | + | |
964 | 971 | | |
965 | 972 | | |
966 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
967 | 977 | | |
968 | 978 | | |
969 | 979 | | |
970 | | - | |
971 | | - | |
| 980 | + | |
| 981 | + | |
972 | 982 | | |
973 | 983 | | |
974 | 984 | | |
| |||
985 | 995 | | |
986 | 996 | | |
987 | 997 | | |
988 | | - | |
989 | | - | |
| 998 | + | |
| 999 | + | |
990 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
991 | 1017 | | |
992 | 1018 | | |
993 | 1019 | | |
| |||
0 commit comments