To be safe in ALL possible places, I'm changing the IO code to simply
write the data to a buffer and set a flag. (This is what oprofile does.)
Once I finish with some buffering changes, I'll get that checked in.
Until then, avoid IO in scheduler functions.