Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102563884
D32877.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D32877.diff
View Options
Index: sys/xen/xen_intr.c
===================================================================
--- sys/xen/xen_intr.c
+++ sys/xen/xen_intr.c
@@ -327,7 +327,8 @@
xen_intr_release_isrc(struct xenisrc *isrc)
{
- mtx_lock(&xen_intr_isrc_lock);
+ if (mtx_owned(&xen_intr_isrc_lock) == 0)
+ mtx_lock(&xen_intr_isrc_lock);
evtchn_mask_port(isrc->xi_port);
evtchn_clear_port(isrc->xi_port);
@@ -1174,7 +1175,6 @@
mtx_unlock(&xen_intr_isrc_lock);
return;
}
- mtx_unlock(&xen_intr_isrc_lock);
xen_intr_release_isrc(isrc);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 2:59 AM (10 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14637461
Default Alt Text
D32877.diff (537 B)
Attached To
Mode
D32877: xen/intr: allow xen_intr_release_isrc() to reuse lock
Attached
Detach File
Event Timeline
Log In to Comment