# US 2019/0317909 A1 · Adding dummy requests to a submission queue to manage processing queued requests according to priorities of the queued requests

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

- Number: US 2019/0317909 A1
- Document ID: US20190317909A1
- Status: Published application
- Kind: A1
- Application number: 15/954,325
- Filed: 2018-04-16
- Published: 2019-10-17
- Earliest claimed: 2018-04-16
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lokesh M. Gupta; Matthew G. Borlick; Kevin J. Ash
- Web page: https://patentgrep.com/patent/US20190317909A1

## CPC

- G06F 13/18: based on priority control (G06F13/1605 takes precedence)
- G06F 12/0842: for multiprocessing or multitasking
- G06F 13/1668: {Details of memory controller}
- G06F 2212/1024: Latency reduction
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a computer program product, system, and method for adding dummy requests to a submission queue to manage processing of queued requests according to priorities of the queued requests. A determination is made of a priority for a request to stage a track from the storage device to the cache or to destage a track from the cache to the storage device, comprising a first priority or a second priority. The first priority is higher than the second priority. At least one dummy request is added to a queue in response to the request having the second priority. The controller upon processing a dummy request in the queue discards the dummy request without performing an operation with respect to the storage device. An I/O request having the second priority is added to the queue. The controller processes the I/O request to stage or destage data.

## Claims

### Claim 1

A computer program product for queuing requests to stage and destage data between a cache and a storage device processed by a controller, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that is executable to perform operations, the operations comprising:
determining a priority for a request to stage a track from the storage device to the cache or to destage a track from the cache to the storage device, wherein the priority comprises a first priority or a second priority, wherein the first priority is higher than the second priority;
adding at least one dummy request to a queue in response to the request having the second priority, wherein the controller upon processing a dummy request in the queue discards the dummy request without performing an operation with respect to the storage device; and
adding an I/O request having the second priority to the queue, wherein the controller upon processing the I/O request stages or destages data between the cache and the storage device.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the adding the I/O request to the queue comprises adding the I/O request to follow the added at least one dummy request in the queue.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
receiving a subsequent request to stage or destage data having the first priority;
determining whether there is a dummy request in the queue; and
replacing the dummy request in the queue with the subsequent request in response to determining that the queue includes the dummy request.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein the operations further comprise:
adding an I/O request to the queue for the subsequent request in response to determining that there is no dummy request in the queue.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the operations further comprise:
writing to a doorbell register in the controller to indicate to process the queue in response to the replacing the dummy request or adding the I/O request to the queue.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the adding the at least one dummy request to the queue comprises:
determining whether the queue includes any dummy requests;
adding a first number of dummy requests to the queue in response to determining that the queue does not include any dummy requests; and
adding a second number of dummy requests to the queue in response to determining that the queue includes dummy requests, wherein the second number is less than the first number.

### Claim 7 (depends on 6)

The computer program product of claim 6, wherein the second number is a function of the first number and a number of dummy requests in the queue.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the first priority comprises a high priority, wherein the at least one dummy request added to the queue comprises a first number of dummy requests indicating the first priority, wherein the operations further comprise:
adding a second number of dummy request to the queue indicating a medium priority in response to the I/O request to stage or destage data having a low priority, wherein the medium priority is greater than the low priority and less than the high priority, wherein the first number is greater than the second number.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the operations further comprise:
adding dummy requests to the queue indicating the high priority in response to the I/O request to stage or destage data having the medium priority.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the operations further comprise:
receiving a subsequent request to stage or destage data having the high or the medium priority;
determining whether there is a dummy request in the queue for the high priority in response to the subsequent request having the high priority;
replacing the dummy request in the queue having the high priority with an I/O request having the high priority in response to determining that the queue includes the dummy request having the high priority;
determining whether there is a dummy request in the queue for the medium priority in response to the subsequent request having the medium priority; and
replacing the dummy request in the queue with an I/O request having the medium priority in response to determining that the queue includes the dummy request having the medium priority.

### Claim 11

A system for queuing requests to stage and destage data between a cache and a storage device processed by a controller, comprising:
at least one processor; and
a computer readable storage medium having computer readable program code embodied that when executed by the at least one processor performs operations, the operations comprising:
determining a priority for a request to stage a track from the storage device to the cache or to destage a track from the cache to the storage device, wherein the priority comprises a first priority or a second priority, wherein the first priority is higher than the second priority;
adding at least one dummy request to a queue in response to the request having the second priority, wherein the controller upon processing a dummy request in the queue discards the dummy request without performing an operation with respect to the storage device; and
adding an I/O request having the second priority to the queue, wherein the controller upon processing the I/O request stages or destages data between the cache and the storage device.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving a subsequent request to stage or destage data having the first priority;
determining whether there is a dummy request in the queue; and
replacing the dummy request in the queue with the subsequent request in response to determining that the queue includes the dummy request.

### Claim 13 (depends on 11)

The system of claim 11, wherein the adding the at least one dummy request to the queue comprises:
determining whether the queue includes any dummy requests;
adding a first number of dummy requests to the queue in response to determining that the queue does not include any dummy requests; and
adding a second number of dummy requests to the queue in response to determining that the queue includes dummy requests, wherein the second number is less than the first number.

### Claim 14 (depends on 11)

The system of claim 11, wherein the first priority comprises a high priority, wherein the at least one dummy request added to the queue comprises a first number of dummy requests indicating the first priority, wherein the operations further comprise:
adding a second number of dummy request to the queue indicating a medium priority in response to the I/O request to stage or destage data having a low priority, wherein the medium priority is greater than the low priority and less than the high priority, wherein the first number is greater than the second number.

### Claim 15 (depends on 14)

The system of claim 14, wherein the operations further comprise:
receiving a subsequent request to stage or destage data having the high or the medium priority;
determining whether there is a dummy request in the queue for the high priority in response to the subsequent request having the high priority;
replacing the dummy request in the queue having the high priority with an I/O request having the high priority in response to determining that the queue includes the dummy request having the high priority;
determining whether there is a dummy request in the queue for the medium priority in response to the subsequent request having the medium priority; and
replacing the dummy request in the queue with an I/O request having the medium priority in response to determining that the queue includes the dummy request having the medium priority.

### Claim 16

A method for queuing requests to stage and destage data between a cache and a storage device processed by a controller, comprising:
determining a priority for a request to stage a track from the storage device to the cache or to destage a track from the cache to the storage device, wherein the priority comprises a first priority or a second priority, wherein the first priority is higher than the second priority;
adding at least one dummy request to a queue in response to the request having the second priority, wherein the controller upon processing a dummy request in the queue discards the dummy request without performing an operation with respect to the storage device; and
adding an I/O request having the second priority to the queue, wherein the controller upon processing the I/O request stages or destages data between the cache and the storage device.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
receiving a subsequent request to stage or destage data having the first priority;
determining whether there is a dummy request in the queue; and
replacing the dummy request in the queue with the subsequent request in response to determining that the queue includes the dummy request.

### Claim 18 (depends on 16)

The method of claim 16, wherein the adding the at least one dummy request to the queue comprises:
determining whether the queue includes any dummy requests;
adding a first number of dummy requests to the queue in response to determining that the queue does not include any dummy requests; and
adding a second number of dummy requests to the queue in response to determining that the queue includes dummy requests, wherein the second number is less than the first number.

### Claim 19 (depends on 16)

The method of claim 16, wherein the first priority comprises a high priority, wherein the at least one dummy request added to the queue comprises a first number of dummy requests indicating the first priority, wherein the operations further comprise:
adding a second number of dummy request to the queue indicating a medium priority in response to the I/O request to stage or destage data having a low priority, wherein the medium priority is greater than the low priority and less than the high priority, wherein the first number is greater than the second number.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
receiving a subsequent request to stage or destage data having the high or the medium priority;
determining whether there is a dummy request in the queue for the high priority in response to the subsequent request having the high priority;
replacing the dummy request in the queue having the high priority with an I/O request having the high priority in response to determining that the queue includes the dummy request having the high priority;
determining whether there is a dummy request in the queue for the medium priority in response to the subsequent request having the medium priority; and
replacing the dummy request in the queue with an I/O request having the medium priority in response to determining that the queue includes the dummy request having the medium priority.
