A memory controller for a disk controller comprises a first memory that
receives first and second write operations in a first order and that
stores the first and second write operations and corresponding write
operation data. A second memory stores a corresponding address for each
of the write operations, wherein the corresponding addresses identify a
location of the write operation data stored in the first memory.
Controller logic determines whether the first write operation and the
second write operation write data to a same track of a disk and transfers
the write operation data from the first memory to a third memory in a
second order when the first write operation and the second write
operation write data to the same track, wherein the second order is
different from the first order.