US 12,222,907 B1
Method, apparatus, device and storage medium for data processing
Jiachen Zhang, Beijing (CN); Qiming Guan, Beijing (CN); Yongji Xie, Beijing (CN); Peng Li, Beijing (CN); Haiyu Wang, Beijing (CN); Sheng Zhao, Beijing (CN); Zewen Jin, Beijing (CN); Liming Wang, Beijing (CN); Tianci Zhang, Beijing (CN); Jinfeng Yang, Beijing (CN); and Wen Chai, Beijing (CN)
Assigned to BEIJING VOLCANO ENGINE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by Beijing Volcano Engine Technology Co., Ltd., Beijing (CN)
Filed on Jun. 3, 2024, as Appl. No. 18/732,418.
Claims priority of application No. 202310953296.8 (CN), filed on Jul. 31, 2023.
Int. Cl. G06F 16/188 (2019.01); G06F 16/178 (2019.01)
CPC G06F 16/188 (2019.01) [G06F 16/178 (2019.01)] 15 Claims
OG exemplary drawing
 
1. A method of data processing, the method being applied at a filesystem of a computer system in userspace, the method comprising:
sending, by the computer system, a data calling request of an application end to a kernel module to process the data calling request, wherein the filesystem in the userspace includes the kernel module and a userspace process;
in response to the kernel module, forwarding the data calling request to the userspace process;
in response to the forwarding the data calling request, obtaining, by the userspace process, first modification time information of data corresponding to the data calling request from a first metadata information stored locally and second modification time information of the data corresponding to the data calling request from second metadata information stored in a file service end, wherein the first modification time information indicates modification time information of data in the kernel module, and the second modification time information indicates modification time information of data in the file service end;
comparing, by the userspace process, the first modification time information with the second modification time information;
in response to the first modification time information and the second modification time information being inconsistent based on the comparing, returning a verification invalidation result to the kernel module;
invalidating, by the kernel module, the data in the kernel module, according to the verification invalidation result;
deleting, by the kernel module, the invalidated data in the kernel module;
in response to the first modification time information being consistent with the second modification time information, returning a verification validation result to the kernel module;
determining, by the kernel module, that data in the kernel module is valid according to the verification validation result;
synchronizing, by the userspace process using the valid data, the data in the file service end to the kernel module; and
in response to the kernel module sending a data shutdown request to the userspace process, caching dirty data to obtain cached data and updating the second modification time information of the cached data in the file service end after writing the cached data back to the file service end.