Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107345310
D35150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
502 B
Referenced Files
None
Subscribers
None
D35150.diff
View Options
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -2262,6 +2262,17 @@
break;
}
+ /*
+ * Nobody owns it, but the acquire failed. This can happen
+ * with ll/sc atomics.
+ */
+ if (owner == UMUTEX_UNOWNED) {
+ error = thread_check_susp(td, true);
+ if (error != 0)
+ break;
+ continue;
+ }
+
/*
* Avoid overwriting a possible error from sleep due
* to the pending signal with suspension check result.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 7:34 PM (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15786288
Default Alt Text
D35150.diff (502 B)
Attached To
Mode
D35150: Handle cas failure when the compare succeeds
Attached
Detach File
Event Timeline
Log In to Comment