summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-03-17 18:38:49 +0000
committerjeff <jeff@FreeBSD.org>2003-03-17 18:38:49 +0000
commitc0f79e52d65c1f88eafe0bcf21039387b1b29497 (patch)
tree5dd8467a599278d5f6d46fbf9bc79b6b4249c249 /sys
parent279c48578e1ee3820f9598b1f7cf8054f0ef11b1 (diff)
downloadFreeBSD-src-c0f79e52d65c1f88eafe0bcf21039387b1b29497.zip
FreeBSD-src-c0f79e52d65c1f88eafe0bcf21039387b1b29497.tar.gz
- Unlock the target bp and not the pager buf bp in a failure case in
cluster_wbuild(). This was causing strange panics that were widely reported on current@. Big Pointy Hat to: jeff
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 54a33f1..0a1c3c1 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -870,7 +870,7 @@ cluster_wbuild(vp, size, start_lbn, len)
(bp->b_flags & (B_VMIO | B_NEEDCOMMIT))) ||
(tbp->b_flags & B_LOCKED) ||
tbp->b_wcred != bp->b_wcred) {
- BUF_UNLOCK(bp);
+ BUF_UNLOCK(tbp);
splx(s);
break;
}
OpenPOWER on IntegriCloud