Shared locking for storage centric exclusive locks

US9542237B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9542237-B2
Application numberUS-201213602779-A
CountryUS
Kind codeB2
Filing dateSep 4, 2012
Priority dateSep 4, 2012
Publication dateJan 10, 2017
Grant dateJan 10, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A computing device receives a request from a host for a shared lock on a resource. The computing device obtains an exclusive lock on the resource using a locking data structure that is stored on the storage domain. The computing device subsequently obtains a shared lock on the resource for the host by writing a flag to the locking data structure, wherein the flag indicates that the host has the shared lock on the resource. The computing device then releases the exclusive lock on the resource.

First claim

Opening claim text (preview).

What is claimed is: 1. A method comprising: generating, by a processing device, a first locking data structure and a second locking data structure on a storage device accessed by a host over a network, the first locking data structure providing locks to one or more host identifiers and the second locking data structure providing locks to one or more resources; acquiring, by the processing device, a lock for the host to one of the host identifiers in response to the host modifying the first locking data structure; receiving, by the processing device, a request from the host for a shared lock on the resource; obtaining, by the processing device, an exclusive lock on the resource for the host using the second locking data structure; subsequently obtaining, by the processing device, the shared lock on the resource for the host by writing a flag to the second locking data structure, wherein the flag indicates the host that has the shared lock on the resource; and releasing the exclusive lock on the resource after obtaining the shared lock. 2. The method of claim 1 , wherein acquiring the lock to one of the host identifiers comprises using a delta lease procedure, and wherein obtaining the exclusive lock on the resource using the second locking data structure comprises using a Paxos locking procedure. 3. The method of claim 1 , wherein the second locking data structure comprises a bitmap stored in a reserved space on the storage device, the bitmap representing locking states for the resource and for an additional resource, wherein writing the flag to the second locking data structure comprises setting a bit in the bitmap that is associated with the resource and the host. 4. The method of claim 1 , wherein the storage device comprises at least one of a physical storage device or a logical storage device comprising a block domain and the second locking data structure comprises a logical volume on the block domain, and wherein the logical volume comprises a plurality of regions, each of the plurality of regions being associated with a different resource and comprising a plurality of subregions, a first subregion comprising a shared lock bitmap identifying hosts having a shared lock on the resource. 5. The method of claim 1 , wherein the storage device comprises at least one of a physical storage device or a logical storage device comprising a file domain and, wherein the second locking data structure comprises a file in the file domain associated with the resource, the file comprising a plurality of regions, one of the plurality of regions comprising a shared lock bitmap identifying hosts having a shared lock on the resource. 6. The method of claim 1 , wherein the storage device comprises the first locking data structure, the second locking data structure, and the resource, and wherein the host identifier uniquely identifies the host to the storage device. 7. The method of claim 1 , further comprising: receiving a request from the host for an exclusive lock on a second resource; granting the exclusive lock on the second resource to the host; reading the second locking data structure to determine whether any hosts have shared locks on the second resource; and in response to determining that a second host has a shared lock on the second resource and that an additional criterion is satisfied, revoking the exclusive lock on the second resource from the host and providing a fail result to the host. 8. The method of claim 7 , wherein the additional criterion is that the second host is responsive, the method further comprising: checking whether the second host is non-responsive; and in response to determining that the second host is non-responsive, revoking the shared lock from the second host and granting the exclusive lock of the second resource to the host. 9. A non-transitory computer readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to: generate, by the processing device, a first locking data structure and a second locking data structure on a storage device accessed by a host over a network, the first locking data structure providing locks to one or more host identifiers and the second locking data structure providing locks to one or more resources; acquire, by the processing device, a lock for the host to one of the host identifiers in response to the host modifying the first locking data structure; receive, by the processing device, a request from the host for a shared lock on the resource; obtain, by the processing device, an exclusive lock on the resource for the host using the second locking data structure; subsequently obtain, by the processing device, the shared lock on the resource for the host by writing a flag to the second locking data structure, wherein the flag indicates the host that has the shared lock on the resource; and release the exclusive lock on the resource after obtaining the shared lock. 10. The non-transitory computer readable storage medium of claim 9 , wherein acquiring the lock to one of the host identifiers comprise using a delta lease procedure, and wherein obtaining the exclusive lock on the resource using the second locking data structure comprises using a Paxos locking procedure. 11. The non-transitory computer readable storage medium of claim 9 , wherein the second locking data structure comprises a bitmap stored in a reserved space on the storage device, the bitmap representing locking states for the resource and for an additional resource, wherein writing the flag to the second locking data structure comprises setting a bit in the bitmap is associated with the resource and the host. 12. The non-transitory computer readable storage medium of claim 9 , wherein the storage device comprises at least one of a physical storage device or a logical storage device comprising a block domain and the second locking data structure comprises a logical volume on the block domain, and wherein the logical volume comprises a plurality of regions, each of the plurality of regions being associated with a different resource and comprising a plurality of subregions, a first subregion comprising a shared lock bitmap identifying hosts having a shared lock on the resource. 13. The non-transitory computer readable storage medium of claim 9 , wherein the storage device comprises at least one of a physical storage device or a logical storage device comprising a file domain and, wherein the second locking data structure comprises a file in the file domain associated with the resource, the file comprising a plurality of regions, one of the plurality of regions comprising a shared lock bitmap identifying hosts having a shared lock on the resource. 14. The non-transitory computer readable storage medium of claim 9 , wherein the storage device comprises the first locking data structure, the second locking data structure and the resource, and wherein the host identifier uniquely identifies the host to the storage device. 15. The non-transitory computer readable storage medium of claim 9 , wherein the instructions further cause the processing device to: receive a request from the host for an exclusive lock on a second resource; momentarily grant the exclusive lock on the second resource to the host; read the second locking data structure to determine whether any hosts have shared locks on the second resource; and in response to determining that a second host has a shared lock on the second resource and that an additional criterion is satisfied, revoke the exclusive lock on the second resource from the host and providing a fail result to the

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9542237B2 cover?
A computing device receives a request from a host for a shared lock on a resource. The computing device obtains an exclusive lock on the resource using a locking data structure that is stored on the storage domain. The computing device subsequently obtains a shared lock on the resource for the host by writing a flag to the locking data structure, wherein the flag indicates that the host has the…
Who is the assignee on this patent?
Baron Ayal, Simoncelli Federico, Warszawski Eduardo, and 1 more
What technology area does this patent fall under?
Primary CPC classification G06F9/526. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 10 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).