Skip to content

fix conversions for -m32 cpu arch flag#11

Open
gofish wants to merge 1 commit into
masterfrom
issue-5-compile-on-32bit-architectures
Open

fix conversions for -m32 cpu arch flag#11
gofish wants to merge 1 commit into
masterfrom
issue-5-compile-on-32bit-architectures

Conversation

@gofish
Copy link
Copy Markdown
Owner

@gofish gofish commented May 29, 2018

Closes: #5

@gofish gofish self-assigned this May 29, 2018
Comment thread ioqueue.c
} else {
/* ensure wait-queue occupies the head of the array */
memmove(_io_reqs, _io_reqs + i, (size_t)(_nwait - i));
memmove(_io_reqs, _io_reqs + i, (size_t)(requestCount));
Copy link
Copy Markdown
Owner Author

@gofish gofish May 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior is unchanged here but it may be that the behavior is not ideal. We seem to be dropping all submitted requests when an error other than EBADF or EINVAL occurs for the zeroth file descriptor.

The other possibilities are

  • EAGAIN - this shouldn't happen if we are accurately tracking the kernel queue depth in the library
  • EFAULT - this shouldn't happen if we are initializing structures correctly in the library
  • EINVAL - this shouldn't happen if the context and requests were properly initialized
  • ENOSYS - this shouldn't happen if there is support for io_submit on the system

Some of these should probably abort(3) the program, and the rest should probably just return -1 and set errno.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant