OPTIMISTIC LOCKING METHOD AND SYSTEM FOR COMMITTING TRANSACTIONS ON A FILE SYSTEM
First Claim
Patent Images
1. In a shared file system, a method for committing a transaction acting upon data stored in a data storage unit, the method comprising:
- reading a state of a set of locks relating to the data;
constructing a completed transaction in memory prior to acquiring the locks;
acquiring exclusive possession of the data storage unit;
acquiring the locks if the state of the locks has not changed since said reading; and
committing the completed transaction.
2 Assignments
0 Petitions
Accused Products
Abstract
In a file system shared by multiple servers, reservation of a data storage unit such as a LUN of a disk array to acquire locks in order to commit a transaction acting on data stored in the data storage unit is deferred until the transaction is completed in RAM and the locks can be acquired in parallel during a single instance of reserving the data storage unit.
84 Citations
20 Claims
-
1. In a shared file system, a method for committing a transaction acting upon data stored in a data storage unit, the method comprising:
-
reading a state of a set of locks relating to the data; constructing a completed transaction in memory prior to acquiring the locks; acquiring exclusive possession of the data storage unit; acquiring the locks if the state of the locks has not changed since said reading; and committing the completed transaction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer system with a shared file system accessed by a plurality of servers, the computer system comprising:
-
a plurality of servers, wherein each of the servers comprises a processor, a random access memory (RAM) and an operating system accessing the shared file system; a data store coupled to the plurality of servers, wherein the data store comprises a data storage unit storing the shared file system, wherein each server'"'"'s processor is programmed to perform the following steps to commit a transaction for a process running on said server; reading into said server'"'"'s RAM a first state of a set of locks relating to data to be acted upon by the transaction; constructing a completed version of the transaction in said server'"'"'s RAM prior to acquiring the locks; acquiring exclusive possession of the data storage unit; checking if the locks have changed state since the first state; acquiring the locks if the state of the locks has not changed since the first state; and committing the completed transaction to a journal in the data storage unit. - View Dependent Claims (14, 15)
-
-
16. A computer readable storage medium having stored therein a computer program for committing a transaction acting upon data stored in a data storage unit, wherein a computer system executing the computer program carries out:
-
reading a state of a set of locks relating to the data; constructing a completed transaction in memory prior to acquiring the locks; acquiring exclusive possession of the data storage unit; acquiring the locks if the state of the locks has not changed since said reading; and committing the completed transaction. - View Dependent Claims (17, 18, 19, 20)
-
Specification