Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Locking @ 1243b689

Name Size
Allocation.hs 16.7 kB
Locks.hs 7.6 kB
Types.hs 1.5 kB

Latest revisions

# Date Author Comment
1243b689 03/13/2014 02:49 pm Klaus Aehlig

Add convenience function to downgrade locks

Add a convenience function that downgrades all locks with a given
property to be held only at shared level.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

5e46225d 03/13/2014 02:49 pm Klaus Aehlig

Fix typo in lock levels

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

e227f161 03/11/2014 03:28 pm Klaus Aehlig

Add a convenience function to release locks by property

While definable from listLocks and updateLocks, it is convenient
to be able to all locks with a given property. This will, e.g.,
allow to release all locks at a given level---as the mcpu does
routinely....

32cbb380 03/11/2014 03:28 pm Klaus Aehlig

BGL is not a set lock

Despite what the name suggests, the Big Ganeti Lock does not act as a
set of all locks. It is just a lock as any other lock from the point
of view of the Ganeti lock hierarchy.

It's special meaning comes from the fact that all jobs, except for...

5714a925 03/11/2014 03:28 pm Klaus Aehlig

For each Ganeti Lock provide its level

...so set a job can request operations on all its locks of a given level.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

1835fd75 03/11/2014 03:28 pm Klaus Aehlig

Add network locks to Haskell

Ganeti also has a lock level for networks, however this level was forgotten
when the Ganeti lock hierarchy was implemented in Haskell.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

1310339c 03/11/2014 03:28 pm Klaus Aehlig

Fix allocation order of locks

The correct allocation order for node-related Ganeti locks is
allocation, group, the node itself, resources.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

2754dc7d 03/11/2014 03:28 pm Klaus Aehlig

Allow transitions from sets to elements

Owning a set-lock has the same effect as owning each member. So asking
for a member while already holding the set lock in the same mode (shared
or exclusive) is, effectively, no asking for new locks. Therefore, do not...

a55a40d6 03/11/2014 03:28 pm Klaus Aehlig

Fix typo

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

26436ab5 03/06/2014 05:35 pm Klaus Aehlig

Add a function to determine the lock owners

To allow for clean up, add a function that provides the list
of all the owners holding at least one lock.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

View revisions

Also available in: Atom