Patent ID: 8914592

Claim:
A data storage apparatus comprising: a write command module configured to process write commands in a buffer memory for writing data to nonvolatile memories associated with a plurality of channels, the write commands including write commands for a read moth write (RMW) operation; a read command module configured to process normal read commands and to process read commands for the RMW operation; and a controller configured to control the write command module and the read command module, wherein the controller is configured to: cause the read command module to, in processing a flush command for a write flush process, process the read commands for the RMW operation prior to all the normal read commands, store the write commands for the RMW operation in the buffer memory, after the read commands for the RMW operation have been processed, and control the write command module to perform the write flush process including processing of all write commands in the buffer memory, the all write commands including the write commands for the RMW operation.