mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Syncing a directory vnode might drop the vnode lock in the
softdep_sync() similarly to the regular vnode sync. Allow retry for both vnode types. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
06d83c8266
commit
46c3d3ac99
1 changed files with 2 additions and 2 deletions
|
|
@ -201,8 +201,8 @@ retry:
|
|||
* bo_dirty list. Recheck and resync as needed.
|
||||
*/
|
||||
BO_LOCK(bo);
|
||||
if (vp->v_type == VREG && (bo->bo_numoutput > 0 ||
|
||||
bo->bo_dirty.bv_cnt > 0)) {
|
||||
if ((vp->v_type == VREG || vp->v_type == VDIR) &&
|
||||
(bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0)) {
|
||||
BO_UNLOCK(bo);
|
||||
goto retry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue