# US 2022/0291837 A1 · Inline flash memory qualification in a storage system

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

- Number: US 2022/0291837 A1
- Document ID: US20220291837A1
- Status: Published application
- Kind: A1
- Application number: 17/200,037
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Pure Storage, Inc.
- Applicants: Pure Storage, Inc.
- Inventors: Shuyi Shao; Yuhong Mao; Peter E. Kirkpatrick
- Web page: https://patentgrep.com/patent/US20220291837A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 11/0727: {in a storage system, e.g. in a DASD or network based storage system (drivers for digital recording or reproducing units G06F3/06; circuits for error detection or correction within digital recording or reproducing units G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/0754: {by exceeding limits}
- G06F 2201/81: Threshold
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Reading data stored at a free block of a storage device is read prior to allocating the free block for storage of data. A determination as to whether a number of bit flips of the data stored at the free block is below a threshold is made. The free block is added to a pool of active free blocks to be allocated for the storage of data upon determining that the number of bit flips of the data stored at the free block is below the threshold.

## Claims

### Claim 1

A system comprising:
a plurality of storage devices; and
a storage controller operatively coupled to the plurality of storage devices, the storage controller comprising a processing device, the processing device to:
read data stored at a free block of a storage device of the plurality of storage devices prior to allocating the free block for storage of data;
determine whether a number of bit flips of the data stored at the free block is below a threshold; and
add the free block to a pool of active free blocks to be allocated for the storage of data upon determining that the number of bit flips of the data stored at the free block is below the threshold.

### Claim 2 (depends on 1)

The system of claim 1, wherein the processing device is further to:
perform an erase check operation on the free block upon determining that the number of bit flips of the data at the free block is greater than or equal to the threshold.

### Claim 3 (depends on 2)

The system of claim 2, wherein the processing device is further to:
add the free block to a quarantine data structure upon the free block failing the erase check operation.

### Claim 4 (depends on 3)

The system of claim 3, wherein the processing device is further to:
perform one or more diagnostic operations on the free block to determine whether the free block reliably stores data, wherein the free block is to be retired upon determining that the free block does not reliably store data.

### Claim 5 (depends on 1)

The system of claim 1, wherein the processing device is further to:
generate a health score for the free block based on one or more characteristics associated with the free block and the number of bit flips of the data stored at the free block.

### Claim 6 (depends on 5)

The system of claim 5, wherein the processing device is further to:
allocate a particular write operation to the free block based on the health score for the free block.

### Claim 7 (depends on 6)

The system of claim 6, wherein the particular write operation has an associated programming mode and wherein the health score indicates that the free block reliably stores data written using the associated programming mode.

### Claim 8

A method comprising:
reading data stored at a free block of a storage device of a plurality of storage devices prior to allocating the free block for storage of data;
determining whether a number of bit flips of the data stored at the free block is below a threshold; and
adding, by a processing device, the free block to a pool of active free blocks to be allocated for the storage of data upon determining that the number of bit flips of the data stored at the free block is below the threshold.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
performing an erase check operation on the free block upon determining that the number of bit flips of the data at the free block is greater than or equal to the threshold.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
adding the free block to a quarantine data structure upon the free block failing the erase check operation.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
performing one or more diagnostic operations on the free block to determine whether the free block reliably stores data, wherein the free block is to be retired upon determining that the free block does not reliably store data.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
generating a health score for the free block based on one or more characteristics associated with the free block and the number of bit flips of the data stored at the free block.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
allocating a particular write operation to the free block based on the health score for the free block.

### Claim 14 (depends on 13)

The method of claim 13, wherein the particular write operation has an associated programming mode and wherein the health score indicates that the free block reliably stores data written using the associated programming mode.

### Claim 15

A non-transitory computer readable storage medium storing instructions, which when executed, cause a processing device of a storage controller to:
read data stored at a free block of a storage device of a plurality of storage devices prior to allocating the free block for storage of data;
determine whether a number of bit flips of the data stored at the free block is below a threshold; and
add, by the processing device, the free block to a pool of active free blocks to be allocated for the storage of data upon determining that the number of bit flips of the data stored at the free block is below the threshold.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the processing device is further to:
perform an erase check operation on the free block upon determining that the number of bit flips of the data at the free block is greater than or equal to the threshold.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the processing device is further to:
add the free block to a quarantine data structure upon the free block failing the erase check operation.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the processing device is further to:
perform one or more diagnostic operations on the free block to determine whether the free block reliably stores data, wherein the free block is to be retired upon determining that the free block does not reliably store data.

### Claim 19 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the processing device is further to:
generate a health score for the free block based on one or more characteristics associated with the free block and the number of bit flips of the data stored at the free block.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the processing device is further to:
allocate a particular write operation to the free block based on the health score for the free block.
