# US 2022/0283713 A1 · Coherency locking schemes

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

- Number: US 2022/0283713 A1
- Document ID: US20220283713A1
- Status: Published application
- Kind: A1
- Application number: 17/703,818
- Filed: 2022-03-24
- Published: 2022-09-08
- Earliest claimed: 2020-03-04
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Yun Li; John Traver
- Web page: https://patentgrep.com/patent/US20220283713A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and devices for coherency locking are described in which different types of writes have different coherency locking schemes. The types of writes can be associated with different sources of write commands, such as external commands from a host system or internal commands from a garbage collection procedure. Coherency locking can be performed for external write commands received from a host system, while coherency locking is not performed for internal write commands. If an internal write is received for data that has been previously written at a prior location, a write to one or more physical memory devices can be performed and, once an acknowledgment is received that the write is complete, an update to a mapping table with the new location of the data is performed.

## Claims

### Claim 1

(canceled)

### Claim 2

An apparatus comprising:
a coherency block configured to perform one or more coherency locking operations for preventing read operations at one or more memory cells;
a write manager coupled with the coherency block, the write manager comprising a first processing core configured to perform a write operation and transmit a coherency lock indication to the coherency block based at least in part on the write operation; and
a read manager coupled with the coherency block, the read manager comprising a second processing core configured to verify that a coherency is locked at the coherency block and refrain from performing a read operation based at least in part on the coherency being locked.

### Claim 3 (depends on 2)

The apparatus of claim 2, further comprising:
a garbage collection manager coupled with the write manager, the garbage collection manager configured to refrain from performing the one or more coherency locking operations for preventing the read operations at the one or more memory cells based at least in part on one or more write operations being associated with a garbage collection operation.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the write manager is configured to perform a second write operation and refrain from transmitting the coherency lock indication to the coherency block based at least in part on the second write operation being associated with a garbage collection operation.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the read manager is configured to verify that the coherency is unlocked at the coherency block and perform the read operation based at least in part on the coherency being unlocked.

### Claim 6 (depends on 4)

The apparatus of claim 4, further comprising:
a logical to physical address table configured to store an updated mapping between a logical address associated with the second write operation and a physical address associated with the second write operation based at least in part on a completion of the second write operation.

### Claim 7 (depends on 2)

The apparatus of claim 2, further comprising:
one or more processing units coupled with the coherency block, the one or more processing units configured to determine that the coherency is locked at the coherency block and perform an access operation at the one or more memory cells based on the coherency being locked.

### Claim 8

A method, comprising:
receiving a first write command comprising data associated with a first memory cell;
generating, as part of a media management operation, a second write command to write the data to a second memory cell; and
refraining, during a first duration, from locking a coherency of the first memory cell based at least in part on generating the second write command as part of the media management operation, wherein one or more read operations are performed on the first memory cell during the first duration based at least in part on refraining from locking the coherency of the first memory cell.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
locking, during a second duration, the coherency of the first memory cell to prevent the one or more read operations at the first memory cell during the second duration based at least in part on receiving the first write command;
writing the data to the first memory cell during the second duration based at least in part on locking the coherency of the first memory cell; and
unlocking the coherency of the first memory cell to allow the one or more read operations at the first memory cell during the first duration based at least in part on writing the data to the first memory cell.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
storing, as part of the media management operation, the data in the second memory cell based at least in part on generating the second write command; and
reading the data from the first memory cell based at least in part on refraining from locking the coherency of the first memory cell.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
performing a garbage collection operation on the first memory cell, wherein the garbage collection operation comprises the second write command.

### Claim 12 (depends on 9)

The method of claim 9, wherein receiving the first write command comprises:
receiving the first write command from a host device, wherein locking the coherency of the first memory cell is based at least in part on receiving the first write command from the host device.

### Claim 13 (depends on 9)

The method of claim 9, further comprising:
updating, responsive to completing a write operation associated with the second write command, a mapping record to indicate the data is located at the second memory cell, wherein the mapping record indicates that the data is located at the first memory cell prior to the updating.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
updating, responsive to receiving the first write command, the mapping record to indicate the data is located at the first memory cell.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
receiving a read command to read the data from the first memory cell; and
transmitting, to a host device, a coherency lock indication responsive to the read command, wherein the coherency lock indication notifies the host device that the coherency is locked at the first memory cell.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
receiving, prior to the updating the mapping record responsive to completing the write operation associated with the second write command, a read command to read the data from the first memory cell;
transmitting, to a host device, a coherency lock indication responsive to the read command, wherein the coherency lock indication notifies the host device that the coherency is unlocked at the first memory cell; and
reading the data from the first memory cell based at least in part on the coherency being unlocked at the first memory cell.

### Claim 17 (depends on 9)

The method of claim 9, wherein locking the coherency comprises:
transmitting, to a coherency block of a controller, a coherency lock command and a memory address for the first memory cell to prevent the one or more read operations at the first memory cell.

### Claim 18

A system comprising:
a plurality of memory components; and
a processing device operatively coupled with the plurality of memory components, the processing device configured to:
receive a first write command comprising data associated with a first memory cell;
generate, as part of a media management operation, a second write command to write the data to a second memory cell; and
refrain, during a first duration, from locking a coherency of the first memory cell based at least in part on generating the second write command as part of the media management operation, wherein refraining from locking the coherency of the first memory cell allows one or more read operations, during the first duration, at the first memory cell.

### Claim 19 (depends on 18)

The system of claim 18, wherein the processing device is further configured to:
lock, during a second duration, the coherency of the first memory cell to prevent the one or more read operations at the first memory cell during the second duration based at least in part on receiving the first write command;
write the data to the first memory cell during the second duration based at least in part on locking the coherency of the first memory cell; and
unlocking the coherency of the first memory cell to allow the one or more read operations at the first memory cell during the first duration based at least in part on writing the data to the first memory cell.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processing device is further configured to:
store, as part of the media management operation, the data in the second memory cell based at least in part on generating the second write command; and
read the data from the first memory cell based at least in part on refraining from locking the coherency of the first memory cell.

### Claim 21 (depends on 19)

The system of claim 19, wherein the processing device is further configured to:
receive the first write command from a host device, wherein locking the coherency of the first memory cell is based at least in part on receiving the first write command from the host device.
