Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106331340
D30726.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
814 B
Referenced Files
None
Subscribers
None
D30726.diff
View Options
diff --git a/sys/x86/xen/xen_intr.c b/sys/x86/xen/xen_intr.c
--- a/sys/x86/xen/xen_intr.c
+++ b/sys/x86/xen/xen_intr.c
@@ -318,6 +318,10 @@
int error;
KASSERT(mtx_owned(&xen_intr_isrc_lock), ("Evtchn alloc lock not held"));
+ isrc = xen_intr_find_unused_isrc(type);
+ if (isrc != NULL) {
+ return (isrc);
+ }
if (xen_intr_auto_vector_count >= NR_EVENT_CHANNELS) {
if (!warned) {
@@ -424,13 +428,10 @@
*port_handlep = NULL;
mtx_lock(&xen_intr_isrc_lock);
- isrc = xen_intr_find_unused_isrc(type);
+ isrc = xen_intr_alloc_isrc(type);
if (isrc == NULL) {
- isrc = xen_intr_alloc_isrc(type);
- if (isrc == NULL) {
- mtx_unlock(&xen_intr_isrc_lock);
- return (ENOSPC);
- }
+ mtx_unlock(&xen_intr_isrc_lock);
+ return (ENOSPC);
}
isrc->xi_port = local_port;
isrc->xi_close = false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 29, 8:12 PM (9 h, 34 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15632745
Default Alt Text
D30726.diff (814 B)
Attached To
Mode
D30726: xen/intr: rework locking, prepare xen_intr_alloc_isrc() for split
Attached
Detach File
Event Timeline
Log In to Comment