# US 2025/0156333 A1 · Dynamic block write cache pass-through mode

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

- Number: US 2025/0156333 A1
- Document ID: US20250156333A1
- Status: Published application
- Kind: A1
- Application number: 18/595,061
- Filed: 2024-03-04
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Junxiang WANG; Xigeng SUN; Vadim MAKHERVAKS; Sijia HUANG; Yingrui TONG; Yuxing ZHOU; Zhihao LIU; Bangzhu ZHU
- Web page: https://patentgrep.com/patent/US20250156333A1

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0813: with a network or matrix configuration
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1048: Scalability
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/154: Networked environment
- G06F 2212/286: Mirrored cache memory
- G06F 2212/311: In host system
- G06F 2212/313: In storage device
- G06F 2212/502: using adaptive policy
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems for transitioning write input/output (I/O) requests from a write-caching mode to a pass-through mode. The method includes determining when a condition has been met for transitioning the write I/O requests and de-staging one or more logs from a write cache to a backing store, where each log corresponds to a pending write I/O operation by a consumer. The method further includes determining when no log remains in the write cache for de-staging to the backing store and initiating the pass-through mode by routing new write I/O requests directly to the backing store instead of the write cache.

## Claims

### Claim 1

A method implemented in a computer system that includes a processor system, comprising:
determining that a condition has been met for transitioning write input/output (I/O) requests for a consumer from a write-caching mode to a pass-through mode;
de-staging one or more logs for the consumer from a write cache to a backing store, each log corresponding to a pending write I/O operation by the consumer;
determining that no log for the consumer remains in the write cache for de-staging to the backing store; and
initiating the pass-through mode after determining that no log for the consumer remains in the write cache for de-staging to the backing store, including routing a new write I/O request to the backing store rather than routing the new write I/O request to the write cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein,
the consumer is a virtual machine (VM) or a container executing in the computer system; and
de-staging the one or more logs for the consumer to the backing store comprises de-staging the one or more logs to a virtual disk corresponding to the VM or the container.

### Claim 3 (depends on 1)

The method of claim 1, wherein the condition for transitioning write I/O requests for the consumer is met when,
a user request has been identified,
a migration of the consumer has been identified,
an I/O error count for the consumer has reached a first threshold, or
an I/O error rate for the consumer has reached a second threshold.

### Claim 4 (depends on 3)

The method of claim 3, wherein,
the condition for transitioning write I/O requests for the consumer is met when the I/O error count for the consumer has reached the first threshold or the I/O error rate for the consumer has reached the second threshold; and
the I/O error count for the consumer or the I/O error rate for the consumer is calculated over a sliding time window.

### Claim 5 (depends on 1)

The method of claim 1, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises de-staging the one or more logs from a replica set that is associated with the consumer.

### Claim 6 (depends on 1)

The method of claim 1, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises de-staging a log from each of a plurality of replica sets in a replica list that is associated with the consumer.

### Claim 7 (depends on 1)

The method of claim 1, wherein,
the new write I/O request is a first new write I/O request; and
the method further comprises:
routing a second new write I/O request to the write cache after determining that the condition has been met, but prior to determining that no log for the consumer remains in the write cache for de-staging to the backing store.

### Claim 8 (depends on 7)

The method of claim 7, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises introducing latency into the second new write I/O request.

### Claim 9 (depends on 8)

The method of claim 8, wherein a magnitude of the latency is based on a rate of de-staging the one or more logs for the consumer from the write cache to the backing store.

### Claim 10 (depends on 8)

The method of claim 8, wherein a magnitude of the latency is based on a rate of write I/O requests received after identifying the condition for transitioning write I/O requests for the consumer.

### Claim 11 (depends on 1)

The method of claim 1, wherein,
the new write I/O request is a first new write I/O request; and
the method further comprises:
determining that write I/O requests for the consumer are to be transitioned from the pass-through mode to the write-caching mode after initiating the pass-through mode; and
initiating the write-caching mode, including routing a second new write I/O request to the write cache.

### Claim 12

A computer system, comprising:
a processor system; and
a computer storage medium that stores computer-executable instructions that are executable by the processor system to at least:
determine that a condition has been met for transitioning write input/output (I/O) requests for a consumer from a write-caching mode to a pass-through mode;
de-stage one or more logs for the consumer from a write cache to a backing store, each log corresponding to a pending write I/O operation by the consumer;
route a first new write I/O request to the write cache after determining that the condition has been met;
determine that no log for the consumer remains in the write cache for de-staging to the backing store; and
initiate the pass-through mode after determining that no log for the consumer remains in the write cache for de-staging to the backing store, including routing a second new write I/O request to the backing store rather than routing the second new write I/O request to the write cache.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein,
the consumer is a virtual machine (VM) or a container executing in the computer system; and
de-staging the one or more logs for the consumer to the backing store comprises de-staging the one or more logs to a virtual disk corresponding to the VM or the container.

### Claim 14 (depends on 12)

The computer system of claim 12, wherein the condition for transitioning write I/O requests for the consumer is met when,
a user request has been identified,
a migration of the consumer has been identified,
an I/O error count for the consumer has reached a first threshold, or
an I/O error rate for the consumer has reached a second threshold.

### Claim 15 (depends on 12)

The computer system of claim 12, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises de-staging the one or more logs from a replica set that is associated with the consumer.

### Claim 16 (depends on 12)

The computer system of claim 12, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises de-staging a log from each of a plurality of replica sets in a replica list that is associated with the consumer.

### Claim 17 (depends on 12)

The computer system of claim 12, wherein de-staging the one or more logs for the consumer from the write cache to the backing store comprises introducing latency into the first new write I/O request.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein a magnitude of the latency is based on a rate of de-staging the one or more logs for the consumer from the write cache to the backing store.

### Claim 19 (depends on 17)

The computer system of claim 17, wherein a magnitude of the latency is based on a rate of write I/O requests received after identifying the condition for transitioning write I/O requests for the consumer.

### Claim 20

A computer storage medium that stores computer-executable instructions that are executable by a processor system to at least:
determine that a condition has been met for transitioning write input/output (I/O) requests for a consumer from a write-caching mode to a pass-through mode;
de-stage one or more logs for the consumer from a write cache to a backing store, each log corresponding to a pending write I/O operation by the consumer;
route a first new write I/O request to the write cache after determining that the condition has been met, including introducing latency into the first new write I/O request based on,
a first rate of de-staging the one or more logs for the consumer from the write cache to the backing store, or
a second rate of write I/O requests received after identifying the condition for transitioning write I/O requests for the consumer;
determine that no log for the consumer remains in the write cache for de-staging to the backing store; and
initiate the pass-through mode after determining that no log for the consumer remains in the write cache for de-staging to the backing store, including routing a second new write I/O request to the backing store rather than routing the second new write I/O request to the write cache.
