MECHANISM FOR IRREVOCABLE TRANSACTIONS
First Claim
1. A machine readable medium including program code which, when executed by a machine, causes the machine to perform the operations of:
- in response to encountering an irrevocable event associated with a transaction to be executed on a processor within the machine,designating the transaction as irrevocable in a transaction descriptor software data structure; and
acquiring a read lock for a data object associated with a transactional read of the transaction when the transaction is designated as irrevocable, wherein the read lock, when acquired, is to allow a remote transaction to read the data object and only the transaction designated as irrevocable to write to the data object.
0 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for designating and handling irrevocable transactions is herein described. In response to detecting an irrevocable event, such as an I/O operation, a user-defined irrevocable designation, and a dynamic failure profile, a transaction is designated as irrevocable. In response to designating a transaction as irrevocable, Single Owner Read Locks (SORLs) are acquired for previous and subsequent reads in the irrevocably designated transaction to ensure the transaction is able to complete without modification to locations read from, while permitting remote resources to load from those locations to continue execution.
7 Citations
11 Claims
-
1. A machine readable medium including program code which, when executed by a machine, causes the machine to perform the operations of:
- in response to encountering an irrevocable event associated with a transaction to be executed on a processor within the machine,
designating the transaction as irrevocable in a transaction descriptor software data structure; and acquiring a read lock for a data object associated with a transactional read of the transaction when the transaction is designated as irrevocable, wherein the read lock, when acquired, is to allow a remote transaction to read the data object and only the transaction designated as irrevocable to write to the data object. - View Dependent Claims (2, 3, 4, 5, 6)
- in response to encountering an irrevocable event associated with a transaction to be executed on a processor within the machine,
-
7. A non-transitory machine readable medium including program code which, when executed by a machine, causes the machine to perform the operations of:
-
associating a meta-data location with an address for a data object through a software algorithm; responsive to the meta-data location holding an unlocked value;
updating the meta-data location to a read and write locked value associated with a transaction before a transactional write from the transaction;
updating the meta-data location to a read locked value to allow other transactions to read the data-object and only the transaction to write to the data object before a transactional read from the transaction in response to the transaction being designated as an irrevocable transaction; and
not updating the meta-data location before the transactional read from the transaction in response to the transaction not being designated as an irrevocable transaction. - View Dependent Claims (8, 9, 10, 11)
-
Specification