aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-10-04 09:20:00 +0000
committerAlan Cox <alc@FreeBSD.org>2003-10-04 09:20:00 +0000
commit10e9e2d1b9294ef51805e633394d4ec7d93c2b01 (patch)
tree28d031d649a0ef7715499c87a2b42f9712bcbd0d /sys/fs
parent8b5905a47df85ecd44da06ab7b63f41df935f180 (diff)
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/specfs/spec_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index f13a36afc6ee9..ff09a7a0d6c6e 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -821,7 +821,6 @@ spec_getpages(ap)
}
}
vm_page_unlock_queues();
- VM_OBJECT_UNLOCK(ap->a_m[ap->a_reqpage]->object);
if (!gotreqpage) {
m = ap->a_m[ap->a_reqpage];
printf(
@@ -833,12 +832,14 @@ spec_getpages(ap)
printf(
" nread: %d, reqpage: %d, pindex: %lu, pcount: %d\n",
nread, ap->a_reqpage, (u_long)m->pindex, pcount);
+ VM_OBJECT_UNLOCK(m->object);
/*
* Free the buffer header back to the swap buffer pool.
*/
relpbuf(bp, NULL);
return VM_PAGER_ERROR;
}
+ VM_OBJECT_UNLOCK(ap->a_m[ap->a_reqpage]->object);
/*
* Free the buffer header back to the swap buffer pool.
*/