aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-01-09 10:33:11 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-01-09 10:33:11 +0000
commit377f88fb087452abfb6beb066c318b4085c09eca (patch)
treef76a0077c0739c4817e74cefaeab67d17d340a53 /sys/ufs/ffs
parentd85e65cb352e71a33827bf748c197260403fb344 (diff)
downloadsrc-377f88fb087452abfb6beb066c318b4085c09eca.tar.gz
src-377f88fb087452abfb6beb066c318b4085c09eca.zip
Postpone the disassotiation of the background write buffer with devvp
so that buf_complete() sees fully constructed buffer. This is a NOP right now, but will be needed by the forthcoming SU change. Reported and tested by: pho Reviewed by: mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=327721
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 8449fddae2db..2a63ee74b654 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -2045,7 +2045,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
@@ -2058,6 +2057,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