Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115763260
D36977.id111749.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
454 B
Referenced Files
None
Subscribers
None
D36977.id111749.diff
View Options
diff --git a/sys/rpc/clnt_vc.c.tsleep b/sys/rpc/clnt_vc.c
--- a/sys/rpc/clnt_vc.c.tsleep
+++ b/sys/rpc/clnt_vc.c
@@ -453,7 +453,9 @@
mtx_lock(&ct->ct_lock);
TAILQ_REMOVE(&ct->ct_pending, cr, cr_link);
/* Sleep for 1 clock tick before trying the sosend() again. */
- msleep(&fake_wchan, &ct->ct_lock, 0, "rpclpsnd", 1);
+ mtx_unlock(&ct->ct_lock);
+ tsleep(&fake_wchan, 0, "rpclpsnd", 1);
+ mtx_lock(&ct->ct_lock);
goto call_again;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 7:52 AM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17838666
Default Alt Text
D36977.id111749.diff (454 B)
Attached To
Mode
D36977: Fix an msleep() that can use different mutexes to avoid assert panic
Attached
Detach File
Event Timeline
Log In to Comment