Patent ID: 8812784

Claim:
A command executing method for a memory storage apparatus, wherein the memory storage apparatus has a buffer memory and a rewritable non-volatile memory module, the rewritable non-volatile memory module has a plurality of physical blocks, and the physical blocks are logically grouped into at least a data area and a spare area, and the physical blocks of the data area are mapped to a plurality of logical blocks, the command executing method comprising: executing a data merging operation to a first logical block in the logical blocks, wherein during the data merging operation, valid data belonging to the first logical block is copied to a first physical block selected from the spare area, and the first physical block has a plurality of physical pages; receiving a write command and a write data corresponding to the write command from a host system during a period of executing the data merging operation; determining whether the number of the physical pages written with data in the first physical block is greater than a predetermined physical page number; and when the number of the physical pages written with data in the first physical block is not greater than the predetermined physical page number, temporarily storing the write data into the buffer memory and then transmitting a response message to the host system at a delay time point, wherein the delay time point is set by adding a dummy delay time to a time point that the operation of writing the write data into the buffer memory is completed, and the response message is used for notifying that the write command is completed.