Obtain mount point lock before restarting sync loop if vget() failed.
Reviewed by: truckman
This commit is contained in:
parent
97eeba7fec
commit
012cbd3181
@ -752,6 +752,7 @@ loop:
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) {
|
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) {
|
||||||
|
MNT_ILOCK(mp);
|
||||||
goto loop;
|
goto loop;
|
||||||
}
|
}
|
||||||
error = VOP_FSYNC(vp, waitfor, td);
|
error = VOP_FSYNC(vp, waitfor, td);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user