Performing parallel cleanup of segments of a lock structure
AssigneeInternational Business Machines Corporation
InventorsDennis J. Dahlen, Jeffrey Mark Nick, David Harold Surman, Douglas W. Westcott
Life of this patent
Estimating the term…
Abstract
A lock structure, which includes many entries, is partitioned into segments. A number of the segments are cleaned up in parallel, such that cleanup processing of the entire lock structure is optimized. The lock structure is maintained within a coupling facility, which provides access to the lock structure by one or more processors coupled to the coupling facility. The cleaning up of the lock structure is performed by commands driven by the one or more processors and executed within the coupling facility.
Claims15
An article of manufacture, comprising:
- at least one computer usable medium having computer readable program code means embodied therein for causing the processing of lock structures, the computer readable program code means in said article of manufacture comprising:
- computer readable program code means for causing a computer to partition a lock structure into a plurality of segments, said plurality of segments comprising a plurality of entries, and said plurality of entries comprising a plurality of locks, wherein said lock structure is located within a coupling facility and shared by one or more processors coupled to said coupling facility, the one or more processors execute one or more operating systems, and wherein said coupling facility has processing and storage capabilities but lacks an operating system;
- and
- computer readable program code means for causing a computer to process multiple segments of said plurality of segments in parallel.
An article of manufacture, comprising:
- at least one computer usable medium having computer readable program code means embodied therein for causing the Processing of lock structures, the computer readable program code means in said article of manufacture comprising:
- computer readable program code means for causing a computer to partition a lock structure into a plurality of segments, said plurality of segments comprising a plurality of entries, and said plurality of entries comprising a plurality of locks;
- and
- computer readable program code means for causing a computer to process multiple segments of said plurality of segments in parallel, wherein said computer readable program code means for causing a computer to process, for a segment of said multiple segments, comprises:
- computer readable program code means for causing a computer to scan entries of said segment to determine whether any locks are held by a terminated user of said lock structure;
- and
- computer readable program code means for causing a computer to clean up one or more of said locks determined to be held by said terminated user.
At least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform a method of processing lock structures, said method comprising:
- partitioning a lock structure into a plurality of segments, said lock structure being located within a coupling facility and shared by one or more processors coupled to said coupling facility, the one or more processors executing one or more operating systems;
- scanning one or more segments of said plurality of segments to locate at least one lock of said lock structure to be cleaned up, said scanning using one or more cleanup commands;
- and
- cleaning up said at least one lock, said cleaning up including the same one or more cleanup commands that located said at least one lock during said scanning, wherein said one or more cleanup commands are initiated by at least one processor of said one or more processors and executed by said coupling facility, said coupling facility having processing and storage capabilities and being external to said one or more processors executing said one or more operating systems.
At least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform a method of processing lock structures, said method comprising:
- scanning one or more segments of a lock structure partitioned into a plurality of segments to determine whether one or more locks of said lock structure is held by a terminated user;
- and
- determining whether any of said one or more locks is to be cleaned up, when said scanning determines said one or more locks is held by said terminated user.
Dependencies are inferred from the claim text.