CPC G06F 3/0652 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |
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.
|