# US 2015/0178017 A1 · Abort function for storage devices by using a poison bit flag wherein a command for indicating which command should be aborted

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

- Number: US 2015/0178017 A1
- Document ID: US20150178017A1
- Status: Published application
- Kind: A1
- Application number: 14/136,351
- Filed: 2013-12-20
- Published: 2015-06-25
- Earliest claimed: 2013-12-20
- Assignees: HGST Netherlands B.V.
- Applicants: HGST Netherlands B.V.
- Inventors: David Lee DARRINGTON; Dylan Mark DEWITT; Adam Michael ESPESETH; Lee Anton SENDELBACH
- Web page: https://patentgrep.com/patent/US20150178017A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/061: {Improving I/O performance}
- 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

An abort function for storage devices sets a “poison bit” flag in the command to be deleted while the command resides on a submission queue prior to being fetched by the SSD controller. In response to the set “poison bit” flag, a storage device controller aborts execution of the I/O command and returns an abort successful status reply to the completion queue.

## Claims

### Claim 1

A method of executing an abort command in a system including a host communicating with a storage device, the method comprising:
storing an input/output (I/O) command in an I/O submission queue located in system memory;
receiving an abort command with respect to the I/O command placed on the I/O submission queue;
setting a “poison bit” flag within the I/O command placed on the I/O submission queue indicating that the I/O command should be aborted;
fetching, by a storage device controller included as part of the storage device, the I/O command from the I/O submission queue;
aborting execution of the I/O command in response to the bit indicating the I/O command should be aborted; and
returning a result indicating the abort was successful to an I/O completion queue located in the system memory.

### Claim 2 (depends on 1)

The method of claim 1, further including:
providing the abort command to an administrative submission queue;
fetching, by the storage device controller, the abort command from the administrative submission queue;
checking an internal queue maintained by the storage device controller for the I/O command to be aborted and aborting execution of the I/O command if located; and
returning a result indicating the abort was successful to an administrative completion queue located in the system memory.

### Claim 3 (depends on 1)

The method of claim 1, wherein the host communicates with the storage device according to a non-volatile memory express (NVMe) standard

### Claim 4

A host computer system that interacts with a storage device, the host computer system comprising:
an input/output (I/O) submission queue, implemented in system memory, that stores I/O commands to be fetched by a storage device controller in the storage device;
an I/O completion queue, implemented in the system memory, that stores results provided by the storage device controller indicating execution of a I/O command; and
a device driver, executed by a processor in the host computer system, that places I/O commands onto the I/O submission queue and reads results provided onto the I/O completion queue, wherein in response to an abort command issued by the host computer system, the device driver locates the command to be aborted within the I/O submission queue and sets an “poison bit” flag in the I/O command.

### Claim 5 (depends on 4)

The host computer system of claim 4, wherein each I/O submission queue is associated with at least one completion queue.

### Claim 6 (depends on 4)

The host computer system of claim 4, further including:
a controller management module having an administrative submission queue and an administrative completion queue, wherein in response to an abort command the device driver provides the controller management module with the abort command for placement onto the administrative submission queue to be fetched by the storage device controller.

### Claim 7 (depends on 4)

The host computer system of claim 4, wherein the storage device is a solid-state drive (SSD).

### Claim 8

A computer system comprising:
a host computer system having a processor and system memory, the host computer system comprising:
an input/output (I/O) submission queue implemented in the system memory;
an I/O completion queue implemented in the system memory; and
a device driver, executed by a processor in the host computer system, that places I/O commands onto the I/O submission queue and reads results provided onto the I/O completion queue, wherein in response to an abort command issued by the host computer system, the device driver locates the I/O command to be aborted within the I/O submission queue and sets a “poison bit” flag in the I/O command; and
a storage device that includes a storage device controller that implements an internal queue for storing I/O commands fetched from the I/O submission queue awaiting execution, wherein the storage device controller fetches I/O commands from the I/O submission queue and places them into the internal queue if the “poison bit” flag is not set, wherein the storage device controller provides an abort successful result to the I/O completion queue if the “poison bit” flag is set.

### Claim 9 (depends on 8)

The computer system of claim 8, further including: a data bus for providing communications between the host computer system and the storage device.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein the data bus is a peripheral component interface express (PCIe) data bus.

### Claim 11 (depends on 8)

The computer system of claim 8, wherein the host computer system further includes:
a controller management module having an administrative submission queue and an administrative completion queue, wherein in response to the abort command issued by the computer system the device driver provides the abort command to the controller management module for placement onto the administrative submission queue to be fetched by the storage device controller.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the storage device controller checks the internal queue for the I/O command to be aborted and returns an abort successful result to the administrative completion queue if the I/O command is located and aborted and returns an abort failed result to the administrative completion queue if the I/O command is not aborted.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein the storage device is a solid-state drive.

### Claim 14

A method of operating a device driver on a host side of an interface system, the method comprising:
receiving an input/output (I/O) command from the host computer system;
placing the I/O command on an I/O submission queue;
receiving an abort command from the host computer system;
locating the I/O command within the I/O submission queue; and
setting a “poison bit” flag within the command to be aborted.

### Claim 15 (depends on 14)

The method of claim 14, wherein the interface system is a non-volatile memory express (NVMe) interface system.

### Claim 16

A computer readable medium that stores instructions for implementing a device driver, wherein execution of the stored instructions by a processor implements a method for accessing a storage device, the method comprising:
receiving an input/output (I/O) command from the host computer system;
placing the I/O command on an I/O submission queue;
receiving an abort command from the host computer system;
locating the I/O command within the I/O submission queue; and
setting a “poison bit” flag within the command to be aborted.

### Claim 17

A storage device comprising:
memory configured to store data;
a controller configured to access the stored data based on input/output (I/O) commands, wherein the controller is further configured to detect a status of a “poison bit” flag in the I/O commands and return a result indicating the I/O command has been aborted if the “poison bit” flag is set.

### Claim 18 (depends on 17)

The storage device of claim 17, wherein the controller fetches the I/O commands from an external I/O submission queue and returns the result indicating the fetched I/O command has been aborted to an external I/O completion queue.

### Claim 19 (depends on 17)

The storage device of claim 17, wherein the controller further includes a plurality of internal queues for storing I/O commands to be executed, wherein the controller places the I/O command into one of the plurality of internal queues if the “poison bit” flag is not set.

### Claim 20 (depends on 17)

The storage device of claim 17, wherein the storage device is a solid-state drive (SSD) and the memory is non-volatile memory.
