Obtain mount point lock before restarting sync loop if vget() failed.

Reviewed by:	truckman
This commit is contained in:
Tor Egge 2006-01-09 18:57:35 +00:00
parent 97eeba7fec
commit 012cbd3181

View File

@ -752,6 +752,7 @@ loop:
continue;
}
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) {
MNT_ILOCK(mp);
goto loop;
}
error = VOP_FSYNC(vp, waitfor, td);