If integration of a buffer into a cluster write operation fails, release

the buffer instead of creating a future deadlock.
PR:		12800
Submitted by:	dillon
This commit is contained in:
Tor Egge 1999-08-31 14:18:32 +00:00
parent 33d37c13fc
commit 87f7b9a9c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50701

View File

@ -797,8 +797,10 @@ cluster_wbuild(vp, size, start_lbn, len)
if (i != 0) { /* if not first buffer */
for (j = 0; j < tbp->b_npages; j += 1) {
m = tbp->b_pages[j];
if (m->flags & PG_BUSY)
if (m->flags & PG_BUSY) {
bqrelse(tbp);
goto finishcluster;
}
}
}