Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167679618
D6334.id16366.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6334.id16366.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_connection.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_connection.c
+++ head/sys/dev/hyperv/vmbus/hv_connection.c
@@ -333,25 +333,30 @@
* Check events
*/
for (dword = 0; dword < maxdword; dword++) {
- if (recv_interrupt_page[dword]) {
+ if (recv_interrupt_page[dword] == 0)
+ continue;
+
for (bit = 0; bit < HV_CHANNEL_DWORD_LEN; bit++) {
- if (synch_test_and_clear_bit(bit,
- (uint32_t *) &recv_interrupt_page[dword])) {
- struct hv_vmbus_channel *channel;
-
- rel_id = (dword << 5) + bit;
- channel = hv_vmbus_g_connection.channels[rel_id];
-
- /* if channel is closed or closing */
- if (channel == NULL || channel->rxq == NULL)
- continue;
-
- if (channel->batched_reading)
- hv_ring_buffer_read_begin(&channel->inbound);
- taskqueue_enqueue(channel->rxq, &channel->channel_task);
- }
+ if (synch_test_and_clear_bit(bit,
+ (uint32_t *)&recv_interrupt_page[dword])) {
+ struct hv_vmbus_channel *channel;
+
+ rel_id = (dword << 5) + bit;
+ channel =
+ hv_vmbus_g_connection.channels[rel_id];
+
+ /* if channel is closed or closing */
+ if (channel == NULL || channel->rxq == NULL)
+ continue;
+
+ if (channel->batched_reading) {
+ hv_ring_buffer_read_begin(
+ &channel->inbound);
+ }
+ taskqueue_enqueue(channel->rxq,
+ &channel->channel_task);
+ }
}
- }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 24, 5:50 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37147854
Default Alt Text
D6334.id16366.diff (1 KB)
Attached To
Mode
D6334: hyperv/vmbus: Fix event processing loop indentation.
Attached
Detach File
Event Timeline
Log In to Comment