From: "Stephen Bates" <sbates@raithlin.com>
To: Alexey Skidanov <alexey.skidanov@intel.com>,
"danielmentz@google.com" <danielmentz@google.com>,
"mathieu.desnoyers@efficios.co" <mathieu.desnoyers@efficios.co>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Laura Abbott <labbott@redhat.com>
Subject: Re: lib/genalloc
Date: Thu, 1 Nov 2018 16:48:45 +0000 [thread overview]
Message-ID: <4DECD467-AD45-419D-8F0F-1456863274FD@raithlin.com> (raw)
In-Reply-To: <a170cf65-6884-3592-1de9-4c235888cc8a@intel.com>
> I use gen_pool_first_fit_align() as pool allocation algorithm allocating
> buffers with requested alignment. But if a chunk base address is not
> aligned to the requested alignment(from some reason), the returned
> address is not aligned too.
Alexey
Can you try using gen_pool_first_fit_order_align()? Will that give you the alignment you need?
Stephen
next prev parent reply other threads:[~2018-11-01 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 16:43 lib/genalloc Alexey Skidanov
2018-11-01 16:48 ` Stephen Bates [this message]
2018-11-01 17:08 ` lib/genalloc Alexey Skidanov
2018-11-02 19:17 ` lib/genalloc Daniel Mentz
2018-11-02 20:56 ` lib/genalloc Alexey Skidanov
2018-11-02 21:16 ` lib/genalloc Daniel Mentz
2018-11-02 22:18 ` lib/genalloc Alexey Skidanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DECD467-AD45-419D-8F0F-1456863274FD@raithlin.com \
--to=sbates@raithlin.com \
--cc=alexey.skidanov@intel.com \
--cc=danielmentz@google.com \
--cc=labbott@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.co \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®