Changes in libcfa/src/concurrency/io.cfa [a3821fa:11054eb]
- File:
-
- 1 edited
-
libcfa/src/concurrency/io.cfa (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
ra3821fa r11054eb 90 90 static inline __u32 __release_sqes( struct $io_context & ); 91 91 92 bool__cfa_io_drain( processor * proc ) {92 void __cfa_io_drain( processor * proc ) { 93 93 /* paranoid */ verify( ! __preemption_enabled() ); 94 94 /* paranoid */ verify( proc ); … … 104 104 __STATS__( false, io.calls.drain++; io.calls.completed += count; ) 105 105 106 if(count == 0) return false;107 108 106 for(i; count) { 109 107 unsigned idx = (head + i) & mask; … … 126 124 /* paranoid */ verify( ! __preemption_enabled() ); 127 125 128 return true;126 return; 129 127 } 130 128 … … 244 242 // Allocation was successful 245 243 __STATS__( true, io.alloc.fast += 1; ) 246 enable_interrupts( );244 enable_interrupts( __cfaabi_dbg_ctx ); 247 245 248 246 __cfadbg_print_safe(io, "Kernel I/O : fast allocation successful from ring %d\n", ctx->fd); … … 256 254 // Fast path failed, fallback on arbitration 257 255 __STATS__( true, io.alloc.slow += 1; ) 258 enable_interrupts( );256 enable_interrupts( __cfaabi_dbg_ctx ); 259 257 260 258 $io_arbiter * ioarb = proc->cltr->io.arbiter; … … 314 312 // Mark the instance as no longer in-use, re-enable interrupts and return 315 313 __STATS__( true, io.submit.fast += 1; ) 316 enable_interrupts( );314 enable_interrupts( __cfaabi_dbg_ctx ); 317 315 318 316 __cfadbg_print_safe(io, "Kernel I/O : submitted on fast path\n"); … … 322 320 // Fast path failed, fallback on arbitration 323 321 __STATS__( true, io.submit.slow += 1; ) 324 enable_interrupts( );322 enable_interrupts( __cfaabi_dbg_ctx ); 325 323 326 324 __cfadbg_print_safe(io, "Kernel I/O : falling back on arbiter for submission\n");
Note:
See TracChangeset
for help on using the changeset viewer.