发明名称 Shared locking for storage centric exclusive locks
摘要 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.
申请公布号 US9542237(B2) 申请公布日期 2017.01.10
申请号 US201213602779 申请日期 2012.09.04
申请人 Red Hat Israel, Ltd. 发明人 Baron Ayal;Simoncelli Federico;Warszawski Eduardo
分类号 G06F12/00;G06F12/14;G06F9/52 主分类号 G06F12/00
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 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.
地址 Raanana IL