- Disable code which allows getnewvnode() to fail. Many ffs_vget() callers

do not correctly deal with failures.  This presently risks deadlock
   problems if dependency processing is held up by failures to allocate
   a vnode, however, this is better than the situation with the failures.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-04-22 00:57:05 +00:00
parent 0d12524bbf
commit 7d60dc524b

View File

@ -821,10 +821,12 @@ getnewvnode(tag, mp, vops, vpp)
}
msleep(&vnlruproc_sig, &vnode_free_list_mtx, PVFS,
"vlruwk", hz);
#if 0 /* XXX Not all VFS_VGET/ffs_vget callers check returns. */
if (numvnodes > desiredvnodes) {
mtx_unlock(&vnode_free_list_mtx);
return (ENFILE);
}
#endif
}
numvnodes++;
mtx_unlock(&vnode_free_list_mtx);