US 12,222,904 B2
Avoiding data inconsistency in a file system using 2-level synchronization
Mahesh Hiregoudar, Bangalore (IN); Prasanna Aithal, Bangalore (IN); Prasad Rao Jangam, Bangalore (IN); Srinivasa Shantharam, Bangalore (IN); Rohan Pasalkar, Palo Alto, CA (US); and Srikanth Mahabalarao, Bangalore (IN)
Assigned to VMware LLC, Palo Alto, CA (US)
Filed by VMware LLC, Palo Alto, CA (US)
Filed on Mar. 24, 2023, as Appl. No. 18/189,979.
Application 18/189,979 is a continuation of application No. 17/398,065, filed on Aug. 10, 2021, granted, now 11,640,375.
Claims priority of application No. 202141028268 (IN), filed on Jun. 23, 2021.
Prior Publication US 2023/0229636 A1, Jul. 20, 2023
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 16/178 (2019.01); G06F 16/17 (2019.01); G06F 16/176 (2019.01); G06F 16/188 (2019.01)
CPC G06F 16/178 (2019.01) [G06F 16/1727 (2019.01); G06F 16/1774 (2019.01); G06F 16/188 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method of synchronously executing input/output operations (IOs) issued by a plurality of virtual computing instances to a file system implemented by one or more storage devices, the method comprising:
detecting a first write IO issued by one of the virtual computing instances, wherein the first write IO includes an instruction to write first data at a first address of a file data block of a file of the file system;
determining by checking metadata of a pointer block of the file that points to the file data block, that a first address range of the file system comprising the first address is locked so as to prevent any pending unmap IOs issued by the virtual computing instances from deallocating storage space of the one or more storage devices mapped to addresses of file data blocks within the first address range; and
in response to determining that the first address range is locked, writing the first data to the one or more storage devices at the first address while the first address range is locked.