# US 2025/0094085 A1 · Techniques for atomic write operations

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

- Number: US 2025/0094085 A1
- Document ID: US20250094085A1
- Status: Published application
- Kind: A1
- Application number: 18/896,777
- Filed: 2024-09-25
- Published: 2025-03-20
- Earliest claimed: 2021-12-29
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Luca Porzio; Christian M. Gyllenskog; Dionisio Minopoli
- Web page: https://patentgrep.com/patent/US20250094085A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/7207: management of metadata or control data
- G06F 2212/7209: Validity control, e.g. using flags, time stamps or sequence numbers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and devices for techniques for atomic write operations are described. A memory system may determine a set of pages for an atomic write operation in which data associated with a write command is linked together for writing to a non-volatile memory. The memory system may write, to the non-volatile memory, metadata that indicates the set of pages is associated with the atomic write operation. Based on the metadata, the memory system may determine whether each page of the set of pages has been written with data for the atomic write operation. The memory system may then communicate to a host system an indication of a completion status for the atomic write operation based on determining whether each page of the set of pages has been written with the data for the atomic write operation.

## Claims

### Claim 1

(canceled)

### Claim 2

An apparatus, comprising:
a memory; and
a controller coupled with the memory and configured to cause the apparatus to:
select a set of pages for storing data associated with a write operation;
write, before writing the data to the set of pages, a respective first indication to each page in the set of pages, wherein the respective first indication for each page in the set of pages indicates that the page has been selected for storing the data;
read, in response to a failure event, a respective second indication from each page in the set of pages in accordance with the respective first indication indicating that each page in the set of pages has been selected for storing the data, wherein the respective second indication for each page in the set of pages indicates whether a respective portion of the data has been written to the page; and
transmit an indication of a completion status for the write operation based at least in part on whether, for each page in the set of pages, the respective second indication of the respective second indications indicates that the respective portion of the data has been written to the page.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the controller is further configured to:
read, in response to the failure event, a plurality of pages comprising the set of pages; and
identify, based at least in part on reading the plurality of pages, the respective first indications in the set of pages, wherein the controller is configured to read the respective second indications from the set of pages based at least in part on the respective first indications being identified in the set of pages.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the controller is further configured to:
determine, based at least in part on reading the respective second indications from the set of pages, that each page of the set of pages is storing its respective portion of the data, wherein the indication of the completion status indicates that the write operation was successfully completed before the failure event based at least in part on the determining.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein the controller is further configured to:
determine, based at least in part on reading the respective second indications from the set of pages, that one or more pages of the set of pages is not storing its respective portion of the data, wherein the indication of the completion status indicates that the write operation failed based at least in part on the determining.

### Claim 6 (depends on 2)

The apparatus of claim 2, wherein the data comprises a plurality of portions, wherein each portion of the plurality of portions is associated with a respective page of the set of pages, and wherein each portion of the plurality of portions is linked together for writing to the memory.

### Claim 7 (depends on 2)

The apparatus of claim 2, wherein the write operation is an atomic write operation.

### Claim 8 (depends on 2)

The apparatus of claim 2, wherein the controller is further configured to:
identify, after writing the respective first indications to each page in the set of pages, an occurrence of the failure event, wherein the respective first indications and the respective second indications are read from each page in the set of pages in response to the failure event.

### Claim 9 (depends on 2)

The apparatus of claim 2, wherein the failure event is an unexpected power loss, an expected power loss, an unexpected power drop, or an expected power drop.

### Claim 10

A method, comprising:
receiving a write command for an atomic write operation in which data associated with the write command is linked together for writing to a memory;
determining, based at least in part on receiving the write command, metadata for the atomic write operation, and a set of pages of the memory for storing the data associated with the atomic write operation;
writing, to each page in the set of pages for storing the data associated with the atomic write operation, and before writing any of the data to the set of pages, the metadata to indicate that the page is in the set of pages for storing the data associated with the atomic write operation;
writing, to a page of the set of pages based at least in part on writing a subset of the data to the page, validity information indicating that at least some of the data has been successfully written to the page of the set of pages; and
determining, in response to a failure event and based at least in part on the validity information, whether each page of the set of pages has been written with a respective amount of the data for the atomic write operation.

### Claim 11 (depends on 10)

The method of claim 10, wherein the metadata comprises an identifier for the atomic write operation and an amount of data for the atomic write operation.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
writing the data for the atomic write operation from a cache memory to the set of pages; and
writing address information for the data to the memory in response to writing the data for the atomic write operation to the set of pages.

### Claim 13 (depends on 10)

The method of claim 10, wherein the failure event comprises a power loss, and wherein the method further comprises:
determining, after the power loss and based at least in part on the metadata, the set of pages for the atomic write operation; and
determining the validity information for the page of the set of pages based at least in part on determining the set of pages, wherein a completion status for the atomic write operation is based at least in part on the validity information.

### Claim 14 (depends on 10)

The method of claim 10, further comprising:
communicating an indication of a maximum amount of data supported for the atomic write operation, wherein a total amount of data for the atomic write operation is less than or equal to the maximum amount of data.

### Claim 15 (depends on 10)

The method of claim 10, further comprising:
communicating an indication of an address limitation for the atomic write operation, wherein a starting logical block address for the atomic write operation is based at least in part on the address limitation.

### Claim 16 (depends on 10)

The method of claim 10, further comprising:
communicating an indication of a granularity of data supported for the atomic write operation, wherein a total amount of data for the atomic write operation is a multiple of the granularity.

### Claim 17

A method, comprising:
determining, in response to a failure event and for an atomic write operation in which data associated with a write command is linked together for writing to a memory, a set of pages previously selected for storing the data associated with the atomic write operation, the determination based at least in part on reading metadata for the atomic write operation, wherein the metadata is stored in each page of the set of pages, and wherein the metadata in a page indicates that page is in the set of pages previously selected for storing the data associated with the atomic write operation; and
communicating an indication of whether the atomic write operation has been completed based at least in part on a determination of whether each page of the set of pages has been written with a respective amount of the data.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
storing the metadata in the set of pages in response to receiving the write command; and
determining that the failure event occurred after storing the metadata.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
determining that the metadata in each page of the set of pages has a same value, wherein the set of pages for the atomic write operation is determined based at least in part on the metadata in each page of the set of pages having the same value.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
determining that each page of the set of pages has been written; and
communicating an indication that the atomic write operation has been completed.

### Claim 21 (depends on 17)

The method of claim 17, further comprising:
determining that at least one page of the set of pages has not been written; and
communicating an indication that the atomic write operation has not been completed.
