Cancel instruction and command for determining the state of an I/O operation
First Claim
1. A non-transitory computer program product for determining a state of an input/output (I/O) operation in an I/O processing system, the I/O operation having an associated time limit, comprising:
- a tangible storage medium readable by a processing circuit and storing instructions for executing by the processing circuit for performing a method comprising;
receiving a request from an operating system at a channel subsystem for initiating the I/O operation;
retrieving an I/O operation command from a location in memory specified by a command field in a transport control word (TCW), the TCW comprising the command field and an interrogate field;
sending the I/O operation command for initiating the I/O operation from the channel subsystem to the control unit;
responsive to a determination by the operating system that the time limit is nearing elapsing without the I/O operation completing, determining whether to send an interrogate command to the control unit, to request a response from the control unit indicating the state of the I/O operation being executed by an I/O device controlled by the control unit; and
responsive to determining whether to send the interrogate command, retrieving an interrogate command address by the channel subsystem from an interrogate field in the TCW, and responsive to the interrogate command address having a non-zero value, retrieving the interrogate command from a location in memory specified by the interrogate command address.
1 Assignment
0 Petitions
Accused Products
Abstract
The state of an input/output (I/O) operation is determined in an I/O processing system. A command is received from an I/O operating system at a channel subsystem for initiating the I/O operation, a time period is for completion of the I/O operation, and the command for initiating the I/O operation is sent from the channel subsystem to the control unit. Responsive to the time period nearing elapsing without the I/O operation completing, a cancel instruction is received from the I/O operating system at the channel subsystem. Responsive to a determination by the I/O operating system to interrogate the control unit, an instruction to interrogate the control unit is received with the cancel instruction from the I/O operating system.
173 Citations
23 Claims
-
1. A non-transitory computer program product for determining a state of an input/output (I/O) operation in an I/O processing system, the I/O operation having an associated time limit, comprising:
-
a tangible storage medium readable by a processing circuit and storing instructions for executing by the processing circuit for performing a method comprising; receiving a request from an operating system at a channel subsystem for initiating the I/O operation; retrieving an I/O operation command from a location in memory specified by a command field in a transport control word (TCW), the TCW comprising the command field and an interrogate field; sending the I/O operation command for initiating the I/O operation from the channel subsystem to the control unit; responsive to a determination by the operating system that the time limit is nearing elapsing without the I/O operation completing, determining whether to send an interrogate command to the control unit, to request a response from the control unit indicating the state of the I/O operation being executed by an I/O device controlled by the control unit; and responsive to determining whether to send the interrogate command, retrieving an interrogate command address by the channel subsystem from an interrogate field in the TCW, and responsive to the interrogate command address having a non-zero value, retrieving the interrogate command from a location in memory specified by the interrogate command address. - View Dependent Claims (2, 3, 4, 5, 6, 7, 21)
-
-
8. An apparatus adapted for communicating with a control unit controlling an input/output (I/O) device for executing an I/O operation in an I/O processing system, the I/O operation having an associated time limit, the apparatus comprising:
-
a channel subsystem for communication with an operating system and the control unit, the channel subsystem configured to perform a method comprising; receiving a request from the operating system for initiating the I/O operation; retrieving an I/O operation command from a location in memory specified by a command field in a transport control word (TCW), the TCW comprising the command field and an interrogate field; sending the I/O operation command for initiating the I/O operation to the control unit; and responsive to a determination by the operating system that the time limit is nearing elapsing without the I/O operation completing, determining whether to send an interrogate command to the control unit, to request a response from the control unit indicating the state of the I/O operation being executed by an I/O device controlled by the control unit; and responsive to determining whether to send the interrogate command, retrieving an interrogate command address by the channel subsystem from an interrogate field in the TCW, and responsive to the interrogate command address having a non-zero value, retrieving the interrogate command from a location in memory specified by the interrogate command address. - View Dependent Claims (9, 10, 11, 12, 13, 14, 22)
-
-
15. A method for determining a state of an input/output (I/O) operation in an I/O processing system, the I/O operation having an associated time limit, the method comprising:
-
receiving a request from an operating system at a channel subsystem for initiating the I/O operation; retrieving an I/O operation command from a location in memory specified by a command field in a transport control word (TCW), the TCW comprising the command field and an interrogate field; sending the I/O operation command for initiating the I/O operation from the channel subsystem to the control unit; responsive to a determination by the operating system that the time limit is nearing elapsing without the I/O operation completing, determining whether to send an interrogate command to the control unit, to request a response from the control unit indicating the state of the I/O operation being executed by an I/O device controlled by the control unit; and responsive to determining whether to send the interrogate command, retrieving an interrogate command address by the channel subsystem from an interrogate field in the TCW, and responsive to the interrogate command address having a non-zero value, retrieving the interrogate command from a location in memory specified by the interrogate command address. - View Dependent Claims (16, 17, 18, 19, 20, 23)
-
Specification