IP Library Granted Patent US 11,681,582
Granted Patent B2
US 11,681,582 · App. 17/653,152 · Granted Jun 20, 2023

Write lock conflicts in a storage network

Inventors: Zachary J. Mark (Chicago, IL); Ilya Volvovski (Chicago, IL); Greg R. Dhuse (Chicago, IL)
Assignee: Pure Storage, Inc.
G06F11/1076G06F3/064G06F3/067G06F3/0619G06F11/1092G06F16/2237G06F16/2336G06F16/278G06F16/86G06F16/951H03M13/2906H03M13/3761G06F2211/1028H03M13/1515
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,681,582
App. No.
17/653,152
Granted
Jun 20, 2023
Kind
B2
Abstract

A storage unit operates by: receiving a write slice request, wherein the write slice request includes a plurality of encoded data slices and wherein the write slice request corresponds to a range; determining whether a write lock conflict exists based on the range; issuing an unfavorable write slice response when the write lock conflict is determined to exist; and when the write lock conflict is determined to not exist: initiating local storage of the plurality of encoded data slices; and issuing a favorable write slice response.

Claims (55)

1. A method for execution by a storage unit that includes a processor, the method comprises:

receiving a write slice request, wherein the write slice request includes a plurality of encoded data slices and wherein the write slice request corresponds to a range;

determining whether a write lock conflict exists based on the range;

issuing an unfavorable write slice response when the write lock conflict is determined to exist; and

when the write lock conflict is determined to not exist:

initiating local storage of the plurality of encoded data slices; and

issuing a favorable write slice response.

2. The method of claim 1 , wherein the plurality of encoded data slices are associated with at least one data segment, and wherein the at least one data segment was dispersed storage error encoded to produce the plurality of encoded data slices for storage in a set of storage units that includes the storage unit.

3. The method of claim 1 , further comprising indicating that the range is locked prior to initiating local storage of the plurality of encoded data slices.

4. The method of claim 1 , wherein generating the range includes identifying a lowest slice name and a high slice name of a corresponding plurality of slice names to produce the range.

5. The method of claim 1 , wherein determining whether a write lock conflict exists includes retrieving at least one locked range corresponding to at least one currently active write lock, and further includes comparing the range to the at least one locked range.

6. The method of claim 5 , wherein the at least one locked range is retrieved from a locked range list stored in local memory, and wherein indicating that the range is not locked includes updating the locked range list stored in local memory.

7. The method of claim 5 , wherein a plurality of locked ranges corresponding to a plurality of currently active write locks are retrieved, wherein the plurality of currently active write locks correspond to a plurality of write slice requests received from a plurality of requesting entities, and wherein an intersection of the plurality of locked ranges is null.

8. The method of claim 5 , wherein the write lock conflict is determined to exist in response to determining that an intersection between the range and the at least one locked range is non-null.

9. The method of claim 8 , wherein the intersection between the range and the at least one locked range is a proper subset of the range and is a proper subset of the at least one locked range.

10. The method of claim 8 , further comprising, when the write lock conflict is determined to exist:

queueing the write slice request in local memory;

determining the intersection between the range and the at least one locked range is null, wherein the intersection between the range and the at least one locked range becomes null in response to a set of slice names included in the intersection changing from a status of locked to not locked;

initiating local storage of the plurality of encoded data slices;

issuing a favorable write slice response; and

indicating that the range is not locked when completing the local storage of the plurality of encoded data slices.

11. The method of claim 1 , further comprising:

receiving a second write slice request from a second requesting entity, wherein the second write slice request is received prior to receiving the write slice request from a first requesting entity, wherein the second write slice request includes a second plurality of encoded data slices and a second corresponding plurality of slice names, and wherein the write lock conflict is determined to not exist in response to determining an intersection between the range and a second range determined for the second plurality of encoded data slices is null; and

facilitating local storage of the second plurality of encoded data slices, wherein the local storage of the second plurality of encoded data slices is initiated prior to initiation of the local storage of the plurality of encoded data slices, and wherein the local storage of the second plurality of encoded data slices is completed after initiation of the local storage of the plurality of encoded data slices.

12. A processing system of a storage unit comprises:

at least one processor;

a memory that stores operational instructions, that when executed by the at least one processor cause the processing system to perform operations that include:

receiving a write slice request, wherein the write slice request includes a plurality of encoded data slices and wherein the write slice request corresponds to a range;

determining whether a write lock conflict exists based on the range;

issuing an unfavorable write slice response when the write lock conflict is determined to exist; and

when the write lock conflict is determined to not exist:

initiating local storage of the plurality of encoded data slices; and

issuing a favorable write slice response.

13. The processing system of claim 12 , wherein the plurality of encoded data slices are associated with at least one data segment, and wherein the at least one data segment was dispersed storage error encoded to produce the plurality of encoded data slices for storage in a set of storage units that includes the storage unit.

14. The processing system of claim 12 , wherein the operational instructions, when executed by the at least one processor, further cause the processing system to indicate that the range is locked prior to initiating local storage of the plurality of encoded data slices.

15. The processing system of claim 12 , wherein determining whether a write lock conflict exists includes retrieving at least one locked range corresponding to at least one currently active write lock, and further includes comparing the range to the at least one locked range.

16. The processing system of claim 15 , wherein the at least one locked range is retrieved from a locked range list stored in local memory, and wherein indicating that the range is not locked includes updating the locked range list stored in local memory.

17. The processing system of claim 15 , wherein the write lock conflict is determined to exist in response to determining that an intersection between the range and the at least one locked range is non-null.

18. The processing system of claim 17 , wherein the operational instructions, when executed by the at least one processor, further cause the processing system to, when the write lock conflict is determined to exist:

queue the write slice request in local memory;

determine the intersection between the range and the at least one locked range is null, wherein the intersection between the range and the at least one locked range becomes null in response to a set of slice names included in the intersection changing from a status of locked to not locked;

initiate local storage of the plurality of encoded data slices;

issue a favorable write slice response; and

indicate that the range is not locked when completing the local storage of the plurality of encoded data slices.

19. The processing system of claim 12 , wherein the operational instructions, when executed by the at least one processor, further cause the processing system to:

receive a second write slice request from a second requesting entity, wherein the second write slice request is received prior to receiving the write slice request from the requesting entity, wherein the second write slice request includes a second plurality of encoded data slices and a second corresponding plurality of slice names, and wherein the write lock conflict is determined to not exist in response to determining an intersection between the range and a second range determined for the second plurality of encoded data slices is null; and

facilitate local storage of the second plurality of encoded data slices, wherein the local storage of the second plurality of encoded data slices is initiated prior to initiation of the local storage of the plurality of encoded data slices, and wherein the local storage of the second plurality of encoded data slices is completed after initiation of the local storage of the plurality of encoded data slices.

20. A tangible computer readable storage medium comprises:

at least one memory section that stores operational instructions that, when executed by a processing system of a dispersed storage network (DSN) that includes a processor and a memory, causes the processing system to perform operations that include:

receiving a write slice request, wherein the write slice request includes a plurality of encoded data slices and wherein the write slice request corresponds to a range;

determining whether a write lock conflict exists based on the range;

issuing an unfavorable write slice response when the write lock conflict is determined to exist; and

when the write lock conflict is determined to not exist:

initiating local storage of the plurality of encoded data slices; and

issuing a favorable write slice response.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 3, 2022
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: PURE STORAGE, INC.
Reel/Frame 059807/0627 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 3, 2022
From: MARK, ZACHARY J.; VOLVOVSKI, ILYA; DHUSE, GREG R.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 059154/0557 →
Continuity (7)
Continuation 16860883 · Apr 28, 2020
Continuation 16145305 · Sep 28, 2018
Continuation In Part 15679569 · Aug 17, 2017
Continuation 15351628 · Nov 15, 2016
Continuation 14589391 · Jan 5, 2015
Provisional Application 61944742 · Feb 26, 2014
Related Publication 20220188191A1 · Jun 16, 2022