Statistics
| Branch: | Tag: | Revision:

root / test / hs / Test / Ganeti / Locking @ cb39314f

Name Size
Allocation.hs 16.5 kB
Locks.hs 3.9 kB
Waiting.hs 10 kB

Latest revisions

# Date Author Comment
cb39314f 04/10/2014 03:18 pm Klaus Aehlig

Verify that all pending requests are justified

If a request is pending in a lock waiting structure, it has to fulfill
two properties:
- It must be a valid request, not violating any lock order requirements, and
- it must not be possible to fulfill it immediately....

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

Verify soundness of notifications

Verify that, if a lock owner gets notified, he
- had a pending request, and
- the request is fulfilled now.

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

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

Strengthen progress property in lock waiting

Not only verify that after the blockers for one pending request
have gone, some request was honored, but also verify that it was
not a request by one of the blockers.

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

60c4dbb9 04/09/2014 01:55 pm Klaus Aehlig

Add process id to lock-owner description

...so that we can notify owners when their pending request got granted.

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

2dcbfddb 04/09/2014 11:58 am Klaus Aehlig

Verify that some progress is made after lock releases

Add a basic sanity check for progress on pending requests. If a
request is pending and all owners it is blocked on release their
locks, there is at least one pending request that can be granted
(the said one). So verify that at least one owner gets notified...

bdb272a6 04/09/2014 11:58 am Klaus Aehlig

Verify that an owner gets notified

Add a basic sanity check on notification: if a request is blocked,
and all old pending owners and blockers give up their resources,
the owner gets notified of his lock being granted.

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

3b907f06 04/09/2014 11:58 am Klaus Aehlig

Verify that pending requests get fulfilled eventually

Add a basic sanity check for the lock waiting mechanism. If a request
get added to pending, and all blockers and pending owners give up their
resources it is automatically handled.

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

8eb56bdf 04/09/2014 11:58 am Klaus Aehlig

Export requestSucceeded

...so that this predicate can be used for testing the LockWaiting
structure as well.

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

62b2c6f3 04/09/2014 11:58 am Klaus Aehlig

Verify that unfulfilled requests lead to pending requests

Verify that an owner has a pending request after a waiting request
not fullfilled immediately.

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

3a79c389 04/09/2014 11:58 am Klaus Aehlig

Verify locks can't be updated while having a pending request

Add a verify first sanity check for lock waiting: a user that has a pending
request cannot modify his locks. This patch also brings in the necessary
infra structure for having arbitrary waiting structures....

View revisions

Also available in: Atom