Split iowait into two states
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest4 patches 22 repliesIn review
- v54 patches 2 repliesSuperseded
- v44 patches 8 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 2 patches | 9 replies | Superseded | |
| v2 | 2 patches | 3 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
Changes in v6 from the cover letter
- Make nr_iowait atomic_long_t unconditionally, as 32-bit archs have it as a 32-bit type. This avoids the ifdef stuff in sched/core.c. Thanks to Zhang Qiao for that suggestion.
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | sched/core: add helpers for iowait handlingkernel/ kernel/ kernel/ | +22 | 0 replies | |
| 2/4 | sched/core: change rq->nr_iowait type to atomic_long_tkernel/ kernel/ | +5 | 1 reply | |
| 3/4 | sched/core: have io_schedule_prepare() return a longblock/ include/ kernel/ +2 more | +10 | 1 reply | |
| 4/4 | sched/core: split iowait state into two statesarch/ arch/ fs/ +5 more | +51 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Zhang Qiao |
|---|---|
| 1/4 | |
| 2/4 | R-b |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHSET v6 0/4] Split iowait into two states
Hi,
This is v6 of the patchset where the current in_iowait state is split into two parts:
1) The "task is sleeping waiting on IO", and would like cpufreq goodness in terms of sleep and wakeup latencies.
2) The above, and also accounted as such in the iowait stats.
The current ->in_iowait covers both, this series splits it into two types of state so that each can be controlled seperately.
Patches 1..3 are prep patches, changing the type of task_struct->nr_iowait and adding helpers to manipulate the iowait counts.
Patch 4 does the actual splitting.
This has been sitting for a while, would be nice to get this queued up for 6.12. Comments welcome!
arch/s390/appldata/appldata_base.c | 2 +- arch/s390/appldata/appldata_os.c | 2 +- block/blk-cgroup.c | 2 +- fs/proc/stat.c | 2 +- include/linux/sched.h | 10 ++++- include/linux/sched/stat.h | 5 ++- kernel/locking/mutex.c | 4 +- kernel/locking/rtmutex_api.c | 4 +- kernel/sched/core.c | 68 ++++++++++++++++++++++++------ kernel/sched/cputime.c | 3 +- kernel/sched/sched.h | 5 ++- kernel/time/tick-sched.c | 6 +-- 12 files changed, 81 insertions(+), 32 deletions(-)
Since v5:
- Make nr_iowait atomic_long_t unconditionally, as 32-bit archs have it as a 32-bit type. This avoids the ifdef stuff in sched/core.c. Thanks to Zhang Qiao for that suggestion.
Signature · 1 line
Jens Axboe