Patent ID: 8161018

Claim:
A system for locking, comprising: a processor; a computer readable storage medium accessible to the processor; and program logic including code causing the processor to perform: under control of a first agent: receiving a request to lock a resource controlled by a second agent with a first operation identifier associated with a first client; and locking the resource controlled by the second agent with the first operation identifier; and under control of the second agent: receiving a request to lock the resource controlled by the second agent with a second operation identifier associated with a second client, wherein the resource is already locked with the first operation identifier; determining whether the first operation identifier and the second operation identifier are a same operation identifier for a same client; in response to determining that the first operation identifier and the second operation identifier are the same operation identifier for the same client, responding to the request with an indication that the resource is locked with the same operation identifier for the same client; and in response to determining that the first operation identifier and the second operation identifier are not the same operation identifier for the same client, denying the lock request.