# US 11,119,657 B2 · Dynamic access in flash system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,657 B2
- Document ID: US11119657B2
- Status: Granted
- Kind: B2
- Application number: 16/655,792
- Filed: 2019-10-17
- Published: 2020-02-13
- Granted: 2021-09-14
- Earliest claimed: 2016-10-28
- Assignees: Pure Storage, Inc.
- Applicants: Pure Storage, Inc.
- Inventors: Nidhi Pankaj Doshi; Eric D. Seppanen; Neil Buda Vachharajani
- Web page: https://patentgrep.com/patent/US11119657B2

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/064: {Management of blocks}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1016: Performance improvement
- G06F 2212/7202: Allocation control and policies
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage controller coupled to a storage array comprising one or more storage devices receive a request to write data to one of the storage devices. The storage controller determines a first data block on the storage device comprising a list of deallocated data blocks on the storage device, the list comprising a block number of each deallocated data block and an access operation count value at which each deallocated data block was deallocated. The storage controller identifies a second data block from the list of deallocated data blocks on the storage device based on a corresponding access operation count value from the list and writes the data to the second data block.

## Claims

### Claim 1

A system comprising:
a storage array comprising a solid state drive; and
a storage controller coupled to the storage array, the storage controller comprising a processing device, the processing device to:
receive a request to write data to the solid state drive;
determine a first data block on the solid state drive comprising a list of deallocated data blocks on the solid state drive, the list comprising an access operation count value at which each deallocated data block was deallocated, the access operation count value representing a program erase count value for a respective deallocated data block;
identify a second data block from the list of deallocated data blocks on the solid state drive;
determine whether the second data block remains deallocated after being added to the list of deallocated blocks based on the program erase count value; and
write the data to the second data block upon determining that the second data block remains deallocated after being added to the list of deallocated blocks.

### Claim 2 (depends on 1)

The system of claim 1, wherein to identify the second data block from the list of deallocated data blocks on the solid state drive is based on a corresponding access operation count value from the list.

### Claim 3 (depends on 1)

The system of claim 1, wherein the processing device further to:
access a dynamic table stored in memory on the solid state drive, the dynamic table comprising block metadata for each data block on the solid state drive.

### Claim 4 (depends on 3)

The system of claim 3, wherein the block metadata comprises an indication of a block type of each data block on the solid state drive and an access operation count value for each data block on the solid state drive.

### Claim 5 (depends on 4)

The system of claim 4, wherein to determine the first data block on the solid state drive, the processing device to determine the first data block from the dynamic table based on the indication of the block type of the first data block.

### Claim 6 (depends on 4)

The system of claim 4, wherein the processing device further to:
compare a first access operation count value associated with the second data block from the dynamic table to a second access operation count value associated with the second data block from the list of deallocated data blocks.

### Claim 7 (depends on 6)

The system of claim 6, wherein the processing device to write the data to the second data block in response to the first access operation count value matching the second access operation count value.

### Claim 8 (depends on 1)

The system of claim 1, wherein to write the data to the second data block, the processing device to overwrite old data stored in the second data block.

### Claim 9

A method comprising:
detecting a restart of a storage device comprising a plurality of non-volatile data blocks and a volatile memory;
scanning the plurality of data blocks on the storage device to identify block metadata stored in each of the plurality of data blocks; and
storing, by a processing device in the storage device, the block metadata in a data structure stored in the volatile memory on the storage device, wherein the data structure is accessible by a storage controller coupled to the storage device, wherein the block metadata comprises an indication of a block type of each of the plurality of data blocks and an access operation count value for each of the plurality of data blocks, the access operation count value representing a program erase count value for respective deallocated data block, the program erase count value to be utilized to determine whether the respective deallocated data block remains deallocated after being added to a list of deallocated blocks.

### Claim 10 (depends on 9)

The method of claim 9, wherein scanning the plurality of data blocks on the storage device comprises reading a block header of each of the plurality of data blocks to identify the block metadata.

### Claim 11 (depends on 9)

The method of claim 9, wherein the data structure comprises a plurality of entries, each of the plurality of entries corresponding to a different one of the plurality of data blocks on the storage device.

### Claim 12 (depends on 9)

The method of claim 9, wherein the storage device comprises a solid-state drive (SSD).

### Claim 13

A non-transitory computer readable storage medium storing instructions, which when executed, cause a processing device to:
access a data structure stored in memory on a storage device, the data structure comprising block metadata for each data block on the storage device;
determine, from the data structure, a first data block on the storage device comprising a list of deallocated data blocks on the storage device, the list comprising a block number of each deallocated data block and an access operation count value at which each deallocated data block was deallocated, the access operation count value representing a program erase count value for respective deallocated data block; and
compare, by the processing device, a first program erase count value associated with each of the deallocated data blocks from the data structure to a second program erase count value associated with each of the deallocated data blocks from the list of deallocated data blocks to determine whether each of the deallocated blocks remains deallocated after being added to the list of deallocated blocks.

### Claim 14 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the block metadata comprises an indication of a block type of each data block on the storage device and an access operation count value for each data block on the storage device.

### Claim 15 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein to determine the first data block on the storage device, the processing device to identify the first data block from the data structure based on the indication of the block type of the first data block.

### Claim 16 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein the processing device further to:
determine that a second data block on the list was previously labeled as comprising old data.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the processing device further to:
label the second data block on the list as comprising new data responsive to the first access operation count value associated with the second data block from the data structure not matching the second access operation count value associated with the second data block from the list of deallocated data blocks.

### Claim 18 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the processing device further to label the second data block on the list as comprising old data.

### Claim 19 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein the processing device further to:
maintain a label of a third data block on the list previously labeled as comprising new data, the third data block on the list as comprising new data responsive the first access operation count value associated with the third data block from the data structure matching the second access operation count value associated with the third data block from the list of deallocated data blocks.
