The present invention provides a method and system for performing in-line error
correction in a disk storage system. The system includes an error correction (ECC)
module; and a first memory storage device, wherein the first memory storage device
and the error correction module simultaneously receive data from a storage disk
before being buffered for transfer to a host system. The ECC module provides error
correction mask before any data is transferred from the first memory storage device
to a second memory buffer.