Eliminate deadlocks on I/O