Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Locking @ 7b4bde57

Name Size
Allocation.hs 16.8 kB
Locks.hs 9.9 kB
Types.hs 1.5 kB
Waiting.hs 14.8 kB

Latest revisions

# Date Author Comment
3ea0d511 04/11/2014 05:02 pm Klaus Aehlig

fix typo

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

d890439b 04/11/2014 05:02 pm Klaus Aehlig

Clean up from LockAllocation what is no longer used

With the change from LockAllocations to LockWaitings, several
manipulation operations had to be implemented for LockWaitings
and became unused in LockAllocation. Remove these functions that
are no longer used....

39c1e700 04/11/2014 05:02 pm Klaus Aehlig

Use a LockWaiting structure instead of a LockAllocation

In this way, we will be able to support in WConfD waiting for locks
to become available instead of having to poll for them.

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

b6442eba 04/11/2014 05:02 pm Klaus Aehlig

Support opportunistically allocating locks

Again, this just wraps around updateLocks, sequentially trying
to obtain all the locks mentioned.

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

6dec5ace 04/11/2014 05:02 pm Klaus Aehlig

Support intersecting locks

...in waiting structures. This is just a convenience wrapper
around freeLocksPredicate.

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

639997b9 04/11/2014 05:02 pm Klaus Aehlig

Support downgrade and freeing locks

Add convenience functions for downgrading and freeing
locks in a waiting structure. As these functions are
guaranteed to always succeed, they will also drop any
pending request of the owner.

Signed-off-by: Klaus Aehlig <>...

32935f7a 04/11/2014 05:02 pm Klaus Aehlig

Do not notify the current requester

The current implementation of lock waiting yields as notification
set the list of all owners whose requests could be fulfilled. This
includes the initiating request. While technically correct, the
original requester gets the answer of the request and hence does not...

c37ca7be 04/10/2014 03:18 pm Klaus Aehlig

Instance JSON LockWaiting

...so that it can be used by WConfD who needs to be
able to persist all its data.

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

07423850 04/10/2014 03:18 pm Klaus Aehlig

Instance JSON LockRequest

...as pending requests need to be serialized when serializing
lock waiting structures.

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

b2a8f6ac 04/10/2014 03:18 pm Klaus Aehlig

Add a function to get a LockWaiting from an extRepr

Add a function to obtain some lock waiting structure from a
given extensional representation.

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

View revisions

Also available in: Atom