summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-20 23:01:37 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-20 23:01:37 +0000
commita16d10de4d8447020f6c883362a084d792ce5f8c (patch)
tree5c5b9f2878a717a862ee04057ada1c0ecd32daf3 /libpager
parent74a2473c3fe2ff3736bf12fe67b6d09f0445d6a6 (diff)
Formerly lock-completed.c.~7~
Diffstat (limited to 'libpager')
-rw-r--r--libpager/lock-completed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpager/lock-completed.c b/libpager/lock-completed.c
index 3cf479fd..bb8505b9 100644
--- a/libpager/lock-completed.c
+++ b/libpager/lock-completed.c
@@ -31,7 +31,6 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object,
{
struct pager *p;
struct lock_request *lr;
- int wakeup;
if (!(p = ports_check_port_type (object, pager_port_type)))
{
@@ -50,12 +49,13 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object,
mutex_lock (&p->interlock);
_pager_wait_for_seqno (p, seqno);
- wakeup = 0;
for (lr = p->lock_requests; lr; lr = lr->next)
if (lr->start == offset && lr->end == offset + length
&& !--lr->locks_pending && !lr->pending_writes)
- wakeup = 1;
- condition_broadcast (&p->wakeup);
+ break;
+
+ if (lr)
+ condition_broadcast (&p->wakeup);
_pager_release_seqno (p);
mutex_unlock (&p->interlock);