Provided are a method, system and program for buffering writes to an
Input/Output (I/O) device in a cache. Writes to an Input/Output (I/O)
device are buffered in a cache. Information on the buffered writes are
communicated to a monitor component enabling identification of the
buffered writes in the cache. A system failure is detected. The monitor
component determines from the information on the buffered writes buffered
in the cache that have not been transferred to the I/O device in response
to the system failure. The monitor component causes the transfer of the
determined writes to the I/O device.