diff options
| author | Tejun Heo <[email protected]> | 2016-12-07 20:48:41 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-01-14 10:30:03 +0000 |
| commit | e33a9bba85a869b85fd0a7f16e21a5ec8977e325 (patch) | |
| tree | 2fe7354139683f7b32d66367c790958e68f1ca68 /fs/jbd2/commit.c | |
| parent | sched/fair: Explain why MIN_SHARES isn't scaled in calc_cfs_shares() (diff) | |
| download | kernel-e33a9bba85a869b85fd0a7f16e21a5ec8977e325.tar.gz kernel-e33a9bba85a869b85fd0a7f16e21a5ec8977e325.zip | |
sched/core: move IO scheduling accounting from io_schedule_timeout() into scheduler
For an interface to support blocking for IOs, it must call
io_schedule() instead of schedule(). This makes it tedious to add IO
blocking to existing interfaces as the switching between schedule()
and io_schedule() is often buried deep.
As we already have a way to mark the task as IO scheduling, this can
be made easier by separating out io_schedule() into multiple steps so
that IO schedule preparation can be performed before invoking a
blocking interface and the actual accounting happens inside the
scheduler.
io_schedule_timeout() does the following three things prior to calling
schedule_timeout().
1. Mark the task as scheduling for IO.
2. Flush out plugged IOs.
3. Account the IO scheduling.
done close to the actual scheduling. This patch moves #3 into the
scheduler so that later patches can separate out preparation and
finish steps from io_schedule().
Patch-originally-by: Peter Zijlstra <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
