Use nowait sync request for a vnode when doing softdep cleanup. We possibly

own the unrelated vnode lock, doing waiting sync causes deadlocks.

Reported and tested by:	pho
Approved by:	re (bz)
This commit is contained in:
Konstantin Belousov 2011-09-20 21:53:26 +00:00
parent 750b5e3134
commit b296414c62

View File

@ -12648,7 +12648,7 @@ softdep_request_cleanup(fs, vp, cred, resource)
MNT_ILOCK(mp);
continue;
}
(void) ffs_syncvnode(lvp, MNT_WAIT);
(void) ffs_syncvnode(lvp, MNT_NOWAIT);
vput(lvp);
MNT_ILOCK(mp);
}