Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131936263
D51233.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
D51233.id.diff
View Options
diff --git a/sys/kern/vfs_inotify.c b/sys/kern/vfs_inotify.c
--- a/sys/kern/vfs_inotify.c
+++ b/sys/kern/vfs_inotify.c
@@ -760,9 +760,11 @@
* directory if it's specified as a vnode.
*/
vrefact(vp);
+ VOP_UNLOCK(vp);
NDINIT_ATVP(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE,
dp->d_name, vp);
error = namei(&nd);
+ vn_lock(vp, LK_SHARED | LK_RETRY);
if (error != 0)
break;
vn_irflag_set_cond(nd.ni_vp, VIRF_INOTIFY_PARENT);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 8:21 AM (14 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23642250
Default Alt Text
D51233.id.diff (461 B)
Attached To
Mode
D51233: inotify: do not call into namei() with a locked vnode
Attached
Detach File
Event Timeline
Log In to Comment