mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Add a missing bresle() in seldom-used error return.
This commit is contained in:
parent
af6aeacb3e
commit
e94828443c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348330
|
@ -11055,15 +11055,13 @@ softdep_disk_write_complete(bp)
|
|||
"with outstanding dependencies for buffer %p", bp));
|
||||
if (ump == NULL)
|
||||
return;
|
||||
|
||||
sbp = NULL;
|
||||
|
||||
/*
|
||||
* If an error occurred while doing the write, then the data
|
||||
* has not hit the disk and the dependencies cannot be processed.
|
||||
* But we do have to go through and roll forward any dependencies
|
||||
* that were rolled back before the disk write.
|
||||
*/
|
||||
sbp = NULL;
|
||||
ACQUIRE_LOCK(ump);
|
||||
if ((bp->b_ioflags & BIO_ERROR) != 0 && (bp->b_flags & B_INVAL) == 0) {
|
||||
LIST_FOREACH(wk, &bp->b_dep, wk_list) {
|
||||
|
@ -11093,6 +11091,8 @@ softdep_disk_write_complete(bp)
|
|||
}
|
||||
}
|
||||
FREE_LOCK(ump);
|
||||
if (sbp)
|
||||
brelse(sbp);
|
||||
return;
|
||||
}
|
||||
LIST_INIT(&reattach);
|
||||
|
|
Loading…
Reference in a new issue