Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    ra3821fa r11054eb  
    9090        static inline __u32 __release_sqes( struct $io_context & );
    9191
    92         bool __cfa_io_drain( processor * proc ) {
     92        void __cfa_io_drain( processor * proc ) {
    9393                /* paranoid */ verify( ! __preemption_enabled() );
    9494                /* paranoid */ verify( proc );
     
    104104                __STATS__( false, io.calls.drain++; io.calls.completed += count; )
    105105
    106                 if(count == 0) return false;
    107 
    108106                for(i; count) {
    109107                        unsigned idx = (head + i) & mask;
     
    126124                /* paranoid */ verify( ! __preemption_enabled() );
    127125
    128                 return true;
     126                return;
    129127        }
    130128
     
    244242                        // Allocation was successful
    245243                        __STATS__( true, io.alloc.fast += 1; )
    246                         enable_interrupts();
     244                        enable_interrupts( __cfaabi_dbg_ctx );
    247245
    248246                        __cfadbg_print_safe(io, "Kernel I/O : fast allocation successful from ring %d\n", ctx->fd);
     
    256254                // Fast path failed, fallback on arbitration
    257255                __STATS__( true, io.alloc.slow += 1; )
    258                 enable_interrupts();
     256                enable_interrupts( __cfaabi_dbg_ctx );
    259257
    260258                $io_arbiter * ioarb = proc->cltr->io.arbiter;
     
    314312                        // Mark the instance as no longer in-use, re-enable interrupts and return
    315313                        __STATS__( true, io.submit.fast += 1; )
    316                         enable_interrupts();
     314                        enable_interrupts( __cfaabi_dbg_ctx );
    317315
    318316                        __cfadbg_print_safe(io, "Kernel I/O : submitted on fast path\n");
     
    322320                // Fast path failed, fallback on arbitration
    323321                __STATS__( true, io.submit.slow += 1; )
    324                 enable_interrupts();
     322                enable_interrupts( __cfaabi_dbg_ctx );
    325323
    326324                __cfadbg_print_safe(io, "Kernel I/O : falling back on arbiter for submission\n");
Note: See TracChangeset for help on using the changeset viewer.