×

Lock management method in cluster, lock server, and client

  • US 10,609,150 B2
  • Filed: 02/27/2019
  • Issued: 03/31/2020
  • Est. Priority Date: 12/14/2015
  • Status: Active Grant
First Claim
Patent Images

1. A lock server comprising:

  • a memory configured to;

    store a read lock request queue, wherein the read lock request queue records an identifier of a client that is in a client cluster and is either in a read lock waiting state or obtaining a read lock for a shared resource, and wherein the read lock request queue further records a write lock allocation identifier indicating whether a write lock for the shared resource is allocated; and

    store a read lock allocation count indicating a quantity of read locks allocated for the shared resource; and

    an interface card coupled to the memory and configured to;

    receive, from a first client in the client cluster, a first read lock request carrying an identifier of the first client and carrying a first memory address in the read lock request queue;

    write the identifier of the first client into the first memory address;

    increase the read lock allocation count according to a quantity of read locks allocated to the first client when the write lock allocation identifier indicates that the write lock is not allocated; and

    send, to the first client, a first message carrying the write lock allocation identifier and indicating that the first client obtains the read lock.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×