[Bugs] [Bug 1343838] New: Implement API to get page aligned iobufs in iobuf.c
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jun 8 07:15:13 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1343838
Bug ID: 1343838
Summary: Implement API to get page aligned iobufs in iobuf.c
Product: GlusterFS
Version: mainline
Component: core
Assignee: bugs at gluster.org
Reporter: kdhananj at redhat.com
CC: bugs at gluster.org
Description of problem:
One of the consumers of a page aligned buffer would be posix's readv fop on
O_DIRECT fds. Today the way it works is by getting a page-aligned buffer
through calloc, pread()ing into this buffer and then copying its contents into
a newly created iobuf's ptr. This results in an extra memcpy() which can be
avoided if we could implement an api that would return an iobuf whose ptr is
mem-aligned. That way the iobuf->ptr can be directly passed to sys_preadv() as
a parameter by posix translator.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list