+ vp = ITOV(ip);
+ /*
+ * the vid needs to be grabbed before we drop
+ * lock protecting the hash
+ */
+ vid = vnode_vid(vp);
+
+ /*
+ * we currently depend on running under the FS funnel
+ * when we do proper locking and advertise ourselves
+ * as thread safe, we'll need a lock to protect the
+ * hash lookup... this is where we would drop it
+ */
+ if (vnode_getwithvid(vp, vid)) {
+ /*
+ * If vnode is being reclaimed, or has
+ * already changed identity, no need to wait
+ */
+ return (NULL);
+ }
+ return (vp);