From: Benjamin LaHaise <bcrl@kvack.org>
To: Karthik Sarangan <karthiks@cdac.in>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: AIO!!
Date: Mon, 10 Oct 2005 12:08:56 -0400 [thread overview]
Message-ID: <20051010160856.GI13986@kvack.org> (raw)
In-Reply-To: <434A6EFC.4010100@cdac.in>
On Mon, Oct 10, 2005 at 07:09:08PM +0530, Karthik Sarangan wrote:
> I wrote a small program to do Async IO from a raw disk
> open has no problems.
> My program gets stuck up at aio_read(paio);
> !!WHY!!
O_DIRECT buffers must be aligned on block sized boundaries (minimum 512
bytes). Check the actual return code from the aiocb and you'll find that
it is likely -EINVAL, no -EINPROGRESS. See the man page for
posix_memalign() to properly align the pointer.
-ben
next prev parent reply other threads:[~2005-10-10 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 13:39 AIO!! Karthik Sarangan
2005-10-10 16:08 ` Benjamin LaHaise [this message]
2005-10-11 5:04 ` AIO!! Karthik Sarangan
2005-10-11 9:25 ` AIO!! Denis Vlasenko
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=20051010160856.GI13986@kvack.org \
--to=bcrl@kvack.org \
--cc=karthiks@cdac.in \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.