US 11,868,642 B2
Managing trim commands in a memory sub-system
Yueh-Hung Chen, Sunnyvale, CA (US); Fangfang Zhu, San Jose, CA (US); Horia Simionescu, Foster City, CA (US); Chih-Kuo Kao, Fremont, CA (US); and Jiangli Zhu, San Jose, CA (US)
Assigned to Micron Technology, Inc., Boise, ID (US)
Filed by Micron Technology, Inc., Boise, ID (US)
Filed on Aug. 31, 2021, as Appl. No. 17/462,629.
Prior Publication US 2023/0065337 A1, Mar. 2, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0652 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A system comprising:
a memory device; and
a processing device, operatively coupled with the memory device, to perform operations comprising:
receiving, by the processing device, a trim command with respect to the memory device, wherein the trim command references a first range of logical block addresses (LBA);
identifying a second range of LBAs corresponding to one or more management units (MUs) of a group of memory cells;
updating a data structure associated with the group of memory cells to reference the trim command;
receiving a memory access command with respect to the group of memory cells;
responsive to determining that the data structure associated with the group of memory cells references the trim command, blocking the memory access command;
responsive to determining that the first range of LBAs referenced by the trim command does not include each LBA of the second range of LBAs corresponding to the one or more MUs of the group of memory cells, performing, on the group of memory cells, a trim operation specified by the trim command;
updating the data structure to indicate the completion of the trim operation; and
responsive to determining that the data structure indicates the completion of the trim operation, performing a memory access operation specified by the memory access command.