From: "Maxim V. Patlasov" <mpatlasov@parallels.com>
To: Zach Brown <zab@redhat.com>
Cc: Brian Foster <bfoster@redhat.com>,
"miklos@szeredi.hu" <miklos@szeredi.hu>,
Alexander Viro <viro@zeniv.linux.org.uk>,
"fuse-devel@lists.sourceforge.net"
<fuse-devel@lists.sourceforge.net>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
<linux-aio@kvack.org>, <bcrl@kvack.org>
Subject: Re: [fuse-devel] [PATCH 0/6] fuse: process direct IO asynchronously
Date: Fri, 14 Dec 2012 10:44:28 +0400 [thread overview]
Message-ID: <50CACACC.70509@parallels.com> (raw)
In-Reply-To: <20121213194357.GD9195@lenny.home.zabbo.net>
12/13/2012 11:43 PM, Zach Brown пишет:
> (I'm jumping in mid-thread, I don't *really* know the context.)
>
>> In the other words, if it's sync, it's enough to wake up someone in
>> kernel (who called wait_on_sync_kiocb()) and return. Otherwise,
>> aio_complete() performs some steps to wake up user (who called
>> io_getevents()). What we need for fuse is another binary attribute:
>> iocb was generated by libaio vs. read(2)/write(2). Then we could use
>> aio_complete() and wait_on_sync_kiocb() for any iocb which was not
>> generated by libaio. E.g. to process sync dio in async way, we'd
>> allocate iocb in fuse_direct_IO on stack (as you suggested), but
>> initialize it as async iocb and pass it to __fuse_direct_read/write,
>> then call wait_on_sync_kiocb(), not to return -EIOCBQUEUED.
> It sounds like you might be interested in the aio in-kernel interface
> that is being worked on in a patch series that gets loop issuing aio
> instead of doing sync io.
>
> http://thread.gmane.org/gmane.linux.file-systems/69326/focus=1398723
Thanks, Zach! I've already considered using this patch, but thank you
anyway.
Maxim
>
> - z
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-12-14 6:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 12:52 [fuse-devel] [PATCH 0/6] fuse: process direct IO asynchronously Maxim V. Patlasov
2012-12-13 19:43 ` Zach Brown
2012-12-14 6:44 ` Maxim V. Patlasov [this message]
2012-12-13 19:51 ` Brian Foster
2012-12-14 12:40 ` Maxim V. Patlasov
2012-12-14 14:21 ` Brian Foster
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=50CACACC.70509@parallels.com \
--to=mpatlasov@parallels.com \
--cc=bcrl@kvack.org \
--cc=bfoster@redhat.com \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-aio@kvack.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=viro@zeniv.linux.org.uk \
--cc=zab@redhat.com \
/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.