CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |
1. A synchronous write method, comprising:
receiving a first synchronous write command of a first process;
if a process state table indicates that at least one other synchronous write command of the first process has not been added to a command queue, adding the first synchronous write command to the command queue;
if the process state table indicates the at least one other synchronous write command of the first process has been added to the command queue, adding an order preserving command to the command queue, and then adding the first synchronous write command to the command queue, wherein the order preserving command is used to indicate that a synchronous write command located before the order preserving command in the command queue is to be executed prior to the first synchronous write command by a storage device; and
sending commands in the command queue to the storage device according to the order of the commands in the command queue.
|