Disk drive aborting a write command before a last target sector reached if an abnormal condition detected and selecting a second command according to a rotational positioning optimization algorithm
AssigneeWestern Digital Technologies, Inc.
InventorGregory B. Thelin
Life of this patent
Estimating the term…
Abstract
A disk drive is disclosed wherein if a write command is aborted, the write command is re-executed according to a rotational position optimization (RPO) algorithm rather than immediately re-executing the write command to better optimize drive performance relative to mechanical latencies. An aborted write command is replaced into an input/output queue together with other pending commands. The aborted write command is eventually re-selected for execution by the RPO algorithm when executing the write command minimizes mechanical latencies relative to the other pending commands.
Claims20
A disk drive comprising:
- (a) a disk comprising a plurality of concentric tracks, each track comprising a plurality of data sectors;
- (b) a head actuated radially over the disk;
- (c) an input/output queue for storing read and write commands received from a host computer;
- (d) a disk controller for executing the commands stored in the input/output queue in an order determined from a rotational positioning optimization (RPO) algorithm, wherein the disk controller for:
- selecting a first write command from the input/output queue according to the RPO algorithm, the first write command for writing user data to a plurality of target data sectors including a first target data sector and a last target data sector;
- seeking the head to a target track comprising the target data sectors;
- waiting for the disk to rotate until the head reaches the first target data sector;
- writing user data to at least the first target data sector;
- if an abnormal condition is detected:
- aborting the first write command before reaching the last target data sector;
- selecting a second command from the input/output queue according to the RPO algorithm;
- and
- if the second command is the first write command, executing the second command by writing user data to at least one of the target data sectors.
A method of aborting a write operation in a disk drive, the disk drive comprising a disk having a plurality of concentric tracks including a plurality of data sectors, a head actuated radially over the disk, and an input/output queue for storing read and write commands received from a host computer, the method comprising the steps of:
- (a) selecting a first write command from the input/output queue according to a rotational position optimization (RPO) algorithm, the first write command for writing user data to a plurality of target data sectors including a first target data sector and a last target data sector;
- (b) seeking the head to a target track comprising the target data sectors;
- (c) waiting for the disk to rotate until the head reaches the first target data sector;
- (d) writing user data to at least the first target data sector;
- (e) if an abnormal condition is detected:
- aborting the first write command before reaching the last target data sector;
- selecting a second command from the input/output queue according to the RPO algorithm;
- and
- if the second command is the first write command, executing the second command to write user data to at least one of the target data sectors.
A disk drive comprising:
- (a) a disk comprising a plurality of concentric tracks, each track comprising a plurality of data sectors;
- (b) a head actuated radially over the disk;
- (c) an input/output queue for storing read and write commands received from a host computer;
- (d) a disk controller for executing the commands stored in the input/output queue in an order determined from a rotational positioning optimization (RPO) algorithm, wherein the disk controller for:
- selecting a first write command from the input/output queue according to the RPO algorithm, the first write command for writing user data to a plurality of target data sectors including a first target data sector and a last target data sector;
- seeking the head to a target track comprising the target data sectors;
- waiting for the disk to rotate until the head reaches the first target data sector;
- writing user data to at least the first target data sector;
- if an abnormal condition is detected:
- aborting the write command before reaching the last target data sector;
- selecting a second command from the input/output queue according to the RPO algorithm;
- and
- if the second command is the first write command, executing the second command by writing user data to a plurality of the target data sectors that follow the target data sector where the first write command was aborted.
A method of aborting a write operation in a disk drive, the disk drive comprising a disk having a plurality of concentric tracks including a plurality of data sectors, a head actuated radially over the disk, and an input/output queue for storing read and write commands received from a host computer, the method comprising the steps of:
- (a) selecting a first write command from the input/output queue according to a rotational position optimization (RPO) algorithm, the first write command for writing user data to a plurality of target data sectors including a first target data sector and a last target data sector;
- (b) seeking the head to a target track comprising the target data sectors;
- (c) waiting for the disk to rotate until the head reaches the first target data sector;
- (d) writing user data to at least the first target data sector;
- (e) if an abnormal condition is detected:
- aborting the first write command before reaching the last target data sector;
- selecting a second command from the input/output queue according to the RPO algorithm;
- and
- if the second command is the first command, executing the second command by writing user data to a plurality of the target data sectors that follow the target data sector where the first write command was aborted.
Dependencies are inferred from the claim text.