Changeset d95969a for libcfa/src/concurrency/io.cfa
- Timestamp:
- Jan 25, 2021, 3:45:42 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c292244
- Parents:
- b6a8b31 (diff), 7158202 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/concurrency/io.cfa (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
rb6a8b31 rd95969a 41 41 #include "io/types.hfa" 42 42 43 static const char * opcodes[] = {43 __attribute__((unused)) static const char * opcodes[] = { 44 44 "OP_NOP", 45 45 "OP_READV", … … 173 173 __cfadbg_print_safe(io_core, "Kernel I/O : IO_URING enter %d %u %u\n", ring.fd, to_submit, flags); 174 174 ret = syscall( __NR_io_uring_enter, ring.fd, to_submit, 0, flags, (sigset_t *)0p, _NSIG / 8); 175 __cfadbg_print_safe(io_core, "Kernel I/O : IO_URING %d returned %d\n", ring.fd, ret); 176 175 177 if( ret < 0 ) { 176 178 switch((int)errno) { 177 179 case EAGAIN: 178 180 case EINTR: 181 case EBUSY: 179 182 ret = -1; 180 183 break; … … 318 321 319 322 __cfadbg_print_safe(io_core, "Kernel I/O : Fast poller %d (%p) stopping\n", this.ring->fd, &this); 323 324 __ioctx_unregister( this ); 320 325 } 321 326 … … 389 394 390 395 block++; 391 392 abort( "Kernel I/O : all submit queue entries used, yielding\n" );393 396 394 397 yield(); … … 465 468 sqe->flags, 466 469 sqe->ioprio, 467 sqe->off,468 sqe->addr,470 (void*)sqe->off, 471 (void*)sqe->addr, 469 472 sqe->len, 470 473 sqe->accept_flags, … … 491 494 } 492 495 else if( ring.eager_submits ) { 493 __ u32 picked = __submit_to_ready_array( ring, idx, mask );496 __attribute__((unused)) __u32 picked = __submit_to_ready_array( ring, idx, mask ); 494 497 495 498 #if defined(LEADER_LOCK) … … 629 632 sqe->flags, 630 633 sqe->ioprio, 631 sqe->off,632 sqe->addr,634 (void*)sqe->off, 635 (void*)sqe->addr, 633 636 sqe->len, 634 637 sqe->accept_flags, … … 642 645 __atomic_thread_fence( __ATOMIC_SEQ_CST ); 643 646 // Release the consumed SQEs 647 644 648 __release_consumed_submission( ring ); 645 649 // ring.submit_q.sqes[idx].user_data = 3ul64;
Note:
See TracChangeset
for help on using the changeset viewer.