Missplaced FREE_LOCK causes a panic when hit while taking a snapshot.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
mckusick 2002-10-23 05:14:06 +00:00
parent 3f32e376be
commit 3819d46020

View File

@ -5571,9 +5571,9 @@ clear_remove(td)
continue;
mp = pagedep->pd_mnt;
ino = pagedep->pd_ino;
FREE_LOCK(&lk);
if (vn_start_write(NULL, &mp, V_NOWAIT) != 0)
continue;
FREE_LOCK(&lk);
if ((error = VFS_VGET(mp, ino, LK_EXCLUSIVE, &vp))) {
softdep_error("clear_remove: vget", error);
vn_finished_write(mp);