Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Locking @ 5e46225d

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

Latest revisions

# Date Author Comment
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 <>

61fd6337 03/04/2014 05:03 pm Klaus Aehlig

Provide an asynchronous task for writing lock status

It will be used to persist the state of the lock allocation on
disk, allowing locks to survive reboots of WConfD.

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

View revisions

Also available in: Atom