# US 2022/0027322 A1 · Facilitating exclusive local locks on a distributed file system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0027322 A1
- Document ID: US20220027322A1
- Status: Published application
- Kind: A1
- Application number: 16/938,586
- Filed: 2020-07-24
- Published: 2022-01-27
- Earliest claimed: 2020-07-24
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Lisa Sproat; Douglas Kilpatrick
- Web page: https://patentgrep.com/patent/US20220027322A1

## CPC

- G06F 16/1774: {Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 16/1824: {implemented using Network-attached Storage [NAS] architecture (distributed or networked storage systems G06F3/067; protocols for distributed storage of data in a network H04L67/1097)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Facilitating exclusive local locks on a distributed file system is provided herein. An embodiment relates to a node device of a cluster of node devices. The node device can comprise a processor and a memory that stores executable instructions that, when executed by the processor, facilitate performance of operations. The operations can comprise determining at least one resource is to be removed from a cache of the node device. The operations also can comprise implementing an exclusive local lock over a defined lock. The defined lock can indicate interest in the at least one resource by other node devices of the cluster of node devices other than the node device. Further, the operations can comprise removing the at least one resource from the cache. The other node devices are not notified of the removing.

## Claims

### Claim 1

A node device of a cluster of node devices, comprising:
a processor; and
a memory that stores executable instructions that, when executed by the processor, facilitate performance of operations, comprising:
determining at least one resource is to be removed from a cache of the node device;
implementing an exclusive local lock over a defined lock, wherein the defined lock indicates interest in the at least one resource by other node devices of the cluster of node devices other than the node device; and
removing the at least one resource from the cache, wherein the other node devices are not notified of the removing.

### Claim 2 (depends on 1)

The node device of claim 1, wherein the removing comprises:
determining that a reference count represented by a reference lock domain is zero; and
in response to the determining that the reference count is zero, executing a function that processes the at least one resource according to a defined procedure.

### Claim 3 (depends on 2)

The node device of claim 2, wherein the operations further comprise:
upgrading the exclusive local lock based on an activation of a contention callback indicator.

### Claim 4 (depends on 3)

The node device of claim 3, wherein the contention callback indicator is triggered based on lock contention.

### Claim 5 (depends on 2)

The node device of claim 2, wherein the executing the function comprises deleting the at least one resource.

### Claim 6 (depends on 2)

The node device of claim 2, wherein the executing the function comprises writing information related to the at least one resource to a storage device.

### Claim 7 (depends on 2)

The node device of claim 2, wherein the executing the function comprises recycling the memory of the node device.

### Claim 8 (depends on 1)

The node device of claim 1, wherein the at least one resource is at least one file stored on a distributed file system.

### Claim 9 (depends on 1)

The node device of claim 1, wherein the cluster of node devices is representative of nodes of a distributed file system.

### Claim 10

A method, comprising:
determining, by a node comprising a processor and part of a group of nodes, that an object is to be unlinked at the node;
implementing, by the node, an exclusive local lock over a defined lock indicating interest in the object; and
unlinking, by the node, the object at the node.

### Claim 11 (depends on 10)

The method of claim 10, wherein the exclusive local lock is considered a shared lock by a cluster-wide coordinator node and is treated as an exclusive lock by an initiator of a local node.

### Claim 12 (depends on 10)

The method of claim 10, wherein a first defined strength of the exclusive local lock on a local node is similar to a second defined strength of a shared lock or delta lock at a cluster-wide coordinator node.

### Claim 13 (depends on 10)

The method of claim 10, wherein the implementing the exclusive local lock comprises bypassing a call to a coordinator node of the group of nodes.

### Claim 14 (depends on 10)

The method of claim 10, wherein the determining comprises clearing cache during a shutdown operation performed at the node.

### Claim 15 (depends on 10)

The method of claim 10, further comprising:
prior to the implementing, determining, by the node, that a context of an operation being performed on the object is an operation local to the node.

### Claim 16 (depends on 10)

The method of claim 10, wherein the defined lock allows one or more processes to lock the object.

### Claim 17 (depends on 10)

The method of claim 10, wherein the defined lock is a null lock.

### Claim 18 (depends on 10)

The method of claim 10, wherein the determining that the object is to be unlinked comprises receiving a command to delete the object.

### Claim 19

A non-transitory machine-readable medium, comprising executable instructions that, when executed by a processor, facilitate performance of operations, comprising:
determining that a cache is to be released from a first node device of a group of node devices;
identifying an object for removal from the cache;
determining whether a contention callback is assigned to the object;
implementing an exclusive local lock over a defined lock that indicates interest in the object by at least one second node device of the group of node devices, the at least one second node device being different than the first node device; and
removing the object from the cache, wherein the implementing comprises bypassing a coordinator node device of the group of node devices during the removing.

### Claim 20 (depends on 19)

The non-transitory machine-readable medium of claim 19, wherein the exclusive local lock is considered a shared lock by a cluster-wide coordinator node device and is treated as an exclusive lock by an initiator of a local node device.
