diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c index b06179274611..a137ce7ed361 100644 --- a/sys/contrib/softupdates/ffs_softdep.c +++ b/sys/contrib/softupdates/ffs_softdep.c @@ -3817,7 +3817,8 @@ softdep_fsync_mountdev(vp) * dependencies. */ if ((wk = LIST_FIRST(&bp->b_dep)) == NULL || - wk->wk_type != D_BMSAFEMAP) { + wk->wk_type != D_BMSAFEMAP || + (bp->b_xflags & BX_BKGRDINPROG)) { BUF_UNLOCK(bp); continue; } diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index b06179274611..a137ce7ed361 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3817,7 +3817,8 @@ softdep_fsync_mountdev(vp) * dependencies. */ if ((wk = LIST_FIRST(&bp->b_dep)) == NULL || - wk->wk_type != D_BMSAFEMAP) { + wk->wk_type != D_BMSAFEMAP || + (bp->b_xflags & BX_BKGRDINPROG)) { BUF_UNLOCK(bp); continue; }