[Bugs] [Bug 1351024] Implement API to get page aligned iobufs in iobuf.c
bugzilla at redhat.com
bugzilla at redhat.com
Thu Jun 30 04:37:11 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1351024
--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14826 committed in release-3.7 by Pranith
Kumar Karampuri (pkarampu at redhat.com)
------
commit af1ab7266edf91216e27484c505c78401f092e13
Author: Krutika Dhananjay <kdhananj at redhat.com>
Date: Tue Jun 7 16:27:34 2016 +0530
libglusterfs: Implement API that provides page-aligned iobufs
Backport of: http://review.gluster.org/14672
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
page-aligned. That way the iobuf->ptr can be directly passed to
sys_pread() as a parameter by posix translator.
Change-Id: Ie44c300dc773fef8e1669d609987d47dbd340ac2
BUG: 1351024
Signed-off-by: Krutika Dhananjay <kdhananj at redhat.com>
Reviewed-on: http://review.gluster.org/14826
Smoke: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Zhou Zhengping <johnzzpcrystal at gmail.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=wb3im7aBuk&a=cc_unsubscribe
More information about the Bugs
mailing list