Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102681615
D40849.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
556 B
Referenced Files
None
Subscribers
None
D40849.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3293,9 +3293,15 @@
case LK_EXCLUSIVE:
break;
case LK_EXCLOTHER:
+ /* Don't wait now for the lock to be freed since this
+ * could cause LORs depending on which other vnodes are
+ * locked. */
+ error = EAGAIN;
+ break;
case 0:
want_unlock = true;
- error = vn_lock(vp, LK_EXCLUSIVE | LK_INTERLOCK);
+ error = vn_lock(vp, LK_EXCLUSIVE | LK_INTERLOCK |
+ LK_NOWAIT);
VI_LOCK(vp);
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 7:19 PM (21 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14663376
Default Alt Text
D40849.diff (556 B)
Attached To
Mode
D40849: vrele(): Never block trying to acquire an exclusive vnode lock
Attached
Detach File
Event Timeline
Log In to Comment