US 11,733,924 B1
Method for discarding garbage collection data during power loss
Andrew John Tomlin, San Jose, CA (US); and Michael Anthony Moser, San Jose, CA (US)
Assigned to KIOXIA CORPORATION, Tokyo (JP)
Filed by Kioxia Corporation, Tokyo (JP)
Filed on Aug. 3, 2021, as Appl. No. 17/393,175.
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0619 (2013.01); G06F 3/0656 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A non-transitory computer-readable medium comprising computer readable instructions, such that when executed by at least one processor of a storage device, causes the processor to:
determine first metadata for first data, wherein the first data is read from first original locations of a non-volatile memory, and the first metadata comprises a first physical address for each of first new locations of the non-volatile memory;
send the first data to the non-volatile memory to be programmed to the first new locations of the non-volatile memory;
in response to detecting an imminent interruption to operations of the storage device, determining whether to save or discard generated metadata based on a completion status for programming of data corresponding to the generated metadata; and
discard the first metadata in response to detecting the imminent interruption to operations of the storage device, wherein a first completion status for programming of the first data is unknown at the time of detecting the imminent interruption.