Commit 7cf2b0f
xfs: bound maximum wait time for inodegc work
Currently inodegc work can sit queued on the per-cpu queue until
the workqueue is either flushed of the queue reaches a depth that
triggers work queuing (and later throttling). This means that we
could queue work that waits for a long time for some other event to
trigger flushing.
Hence instead of just queueing work at a specific depth, use a
delayed work that queues the work at a bound time. We can still
schedule the work immediately at a given depth, but we no long need
to worry about leaving a number of items on the list that won't get
processed until external events prevail.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>1 parent e89ab76 commit 7cf2b0f
3 files changed
Lines changed: 24 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | | - | |
1845 | | - | |
| 1844 | + | |
| 1845 | + | |
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
| |||
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
| 2017 | + | |
2017 | 2018 | | |
2018 | 2019 | | |
2019 | 2020 | | |
| |||
2025 | 2026 | | |
2026 | 2027 | | |
2027 | 2028 | | |
2028 | | - | |
2029 | 2029 | | |
2030 | | - | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2031 | 2036 | | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | 2037 | | |
2037 | 2038 | | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
2038 | 2046 | | |
2039 | 2047 | | |
2040 | | - | |
| 2048 | + | |
2041 | 2049 | | |
2042 | 2050 | | |
2043 | 2051 | | |
| |||
2054 | 2062 | | |
2055 | 2063 | | |
2056 | 2064 | | |
2057 | | - | |
| 2065 | + | |
2058 | 2066 | | |
2059 | 2067 | | |
2060 | 2068 | | |
| |||
2073 | 2081 | | |
2074 | 2082 | | |
2075 | 2083 | | |
2076 | | - | |
2077 | 2084 | | |
2078 | 2085 | | |
2079 | 2086 | | |
2080 | | - | |
| 2087 | + | |
2081 | 2088 | | |
| 2089 | + | |
2082 | 2090 | | |
2083 | 2091 | | |
2084 | 2092 | | |
| |||
2173 | 2181 | | |
2174 | 2182 | | |
2175 | 2183 | | |
2176 | | - | |
| 2184 | + | |
2177 | 2185 | | |
2178 | 2186 | | |
2179 | 2187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
| 1077 | + | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| |||
0 commit comments