diff options
author | Artem Bityutskiy <[email protected]> | 2010-07-25 14:29:14 +0300 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2010-08-07 18:53:55 +0200 |
commit | c4ec7908c2c5125f75fabd100e7a95626a6883ee (patch) | |
tree | d58ee401205de8385c74a04e9b66101fc9a6e22b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
parent | c5f7ad233b8805dae06e694538d8095b19f3c560 (diff) |
writeback: do not lose wake-ups in the forker thread - 2
Currently, if someone submits jobs for the default bdi, we can lose wake-up
events. E.g., this can happen if 'bdi_queue_work()' is called when
'bdi_forker_thread()' is executing code after 'wb_do_writeback(me, 0)', but
before 'set_current_state(TASK_INTERRUPTIBLE)'.
This situation is unlikely, and the result is not very severe - we'll just
delay the execution of the work, but this is still not very nice.
This patch fixes the issue by checking whether the default bdi has works before
the forker thread goes sleep.
Signed-off-by: Artem Bityutskiy <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions