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:
parent
33d37c13fc
commit
87f7b9a9c1
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user