Method and device for lock management

A consistent and unlocking technology, applied in the field of lock management, can solve problems such as irreparable business

Active Publication Date: 2021-10-29
MACROSAN TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this case, because the critical section has been modified, it is not possible to repair the previously unfinished business

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for lock management
  • Method and device for lock management
  • Method and device for lock management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the existing technical solutions and the present invention in conjunction with the accompanying drawings. The technical solutions in the embodiments of the invention are described in further detail.

[0026] For a clearer description of the problems of the prior art, see figure 1 , is a schematic diagram of a locking process in the prior art.

[0027] figure 1 The dual-control storage system includes a storage SP (Storage Processor, storage controller) 1 and a storage SP2. The storage SP1 and the storage SP2 may be connected through a PCI-e (Peripheral Component Interconnect Express, peripheral component interconnection standard) line, so as to realize data synchronization...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present application provides a method and device for lock management. The method includes: when receiving a lock acquisition request for a heavyweight lock already held, judging whether the controller holding the heavyweight lock fails; if , check whether the service identifier carried in the lock request is consistent with the service identifier corresponding to the lock identifier of the heavyweight lock; if they are consistent, establish a connection between the heavyweight lock and the device identifier of the controller that sends the lock request Association relationship, and return a lock acquisition success message; if inconsistent, return a lock acquisition failure message. In the technical solution of the present application, if the controller holding the heavyweight lock fails, when receiving a lock request for the heavyweight lock, it is necessary to judge whether the business identifier in the lock request is consistent with the lock of the heavyweight lock. To identify whether the corresponding business identifier is consistent, and only redistribute the heavyweight lock if it is consistent, so as to ensure that the unfinished business in the critical section locked by the heavyweight lock can be repaired.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for lock management. Background technique [0002] In a multi-controller storage system, it is inevitable that business processing needs to access critical section resources. When the controller accesses any critical section, it usually acquires the service lock of the critical section, so as to achieve the purpose of protecting the resources of the critical section. Wherein, the critical section refers to a program fragment that accesses a shared resource (eg, a shared device or a shared memory), and these program fragments cannot be accessed by multiple threads at the same time. [0003] The business lock is managed by the lock module, which provides interfaces such as creating locks, deleting locks, acquiring locks, and releasing locks. [0004] In the prior art, after a controller locks any critical section, if a fault occurs during the execu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/14G06F12/02G06F9/46G06F9/50
CPCG06F9/466G06F9/5011G06F12/0215G06F12/1466
Inventor 叶东俊赖佳
Owner MACROSAN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products