Repository navigation
Commit 26b06a6
committed
GFS2: Wait properly when flushing the ail list
The ail flush code has always relied upon log flushing to prevent
it from spinning needlessly. This fixes it to wait on the last
I/O request submitted (we don't need to wait for all of it)
instead of either spinning with io_schedule or sleeping.
As a result cpu usage of gfs2_logd is much reduced with certain
workloads.
Reported-by: Abhijith Das <adas@redhat.com>
Tested-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>1 parent 6d3117b commit 26b06a6
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
231 | 252 | | |
232 | 253 | | |
233 | 254 | | |
| |||
878 | 899 | | |
879 | 900 | | |
880 | 901 | | |
| 902 | + | |
881 | 903 | | |
882 | 904 | | |
883 | | - | |
884 | 905 | | |
885 | 906 | | |
886 | 907 | | |
| |||
920 | 941 | | |
921 | 942 | | |
922 | 943 | | |
923 | | - | |
| 944 | + | |
924 | 945 | | |
925 | 946 | | |
926 | 947 | | |
927 | 948 | | |
928 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
929 | 952 | | |
930 | 953 | | |
931 | 954 | | |
| |||
0 commit comments