svn commit: r328045 - stable/11/sys/ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Tue Jan 16 10:54:33 UTC 2018
Author: kib
Date: Tue Jan 16 10:54:32 2018
New Revision: 328045
URL: https://svnweb.freebsd.org/changeset/base/328045
Log:
MFC r327721:
Postpone the disassotiation of the background write buffer with devvp
so that buf_complete() sees fully constructed buffer.
Modified:
stable/11/sys/ufs/ffs/ffs_vfsops.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- stable/11/sys/ufs/ffs/ffs_vfsops.c Tue Jan 16 09:31:01 2018 (r328044)
+++ stable/11/sys/ufs/ffs/ffs_vfsops.c Tue Jan 16 10:54:32 2018 (r328045)
@@ -2040,7 +2040,6 @@ ffs_backgroundwritedone(struct buf *bp)
/*
* Process dependencies then return any unfinished ones.
*/
- pbrelvp(bp);
if (!LIST_EMPTY(&bp->b_dep) && (bp->b_ioflags & BIO_ERROR) == 0)
buf_complete(bp);
#ifdef SOFTUPDATES
@@ -2053,6 +2052,7 @@ ffs_backgroundwritedone(struct buf *bp)
*/
bp->b_flags |= B_NOCACHE;
bp->b_flags &= ~B_CACHE;
+ pbrelvp(bp);
/*
* Prevent brelse() from trying to keep and re-dirtying bp on
More information about the svn-src-stable
mailing list