mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50701
@ -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