US 11,853,614 B2
Synchronous write method and device, storage system and electronic device
Heng Zhang, Shaanxi (CN); and Wenwen Chen, Shaanxi (CN)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on May 12, 2022, as Appl. No. 17/743,204.
Claims priority of application No. 202111422771.6 (CN), filed on Nov. 26, 2021.
Prior Publication US 2023/0168841 A1, Jun. 1, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
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.