From: Jeff Moyer <jmoyer@redhat.com>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: Hannes Reinecke <hare@suse.de>,
"Darrick J. Wong" <darrick.wong@oracle.com>,
Chuck Lever <chuck.lever@oracle.com>, Ben Myers <bpm@sgi.com>,
<lsf-pc@lists.linux-foundation.org>,
<linux-fsdevel@vger.kernel.org>, <linux-scsi@vger.kernel.org>,
<martin.petersen@oracle.com>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
Zach Brown <zab@redhat.com>
Subject: Re: [LSF/MM TOPIC][ATTEND] protection information and userspace
Date: Thu, 07 Feb 2013 11:19:59 -0500 [thread overview]
Message-ID: <x497gmkgkpc.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <51139940.3000902@panasas.com> (Boaz Harrosh's message of "Thu, 7 Feb 2013 14:08:32 +0200")
Boaz Harrosh <bharrosh@panasas.com> writes:
>>> I also pondered simply adding a new io_prep_* function + IO_CMD_ code to libaio
>>> and all the other plumbing necessary to make that happen...
>>>
>>> void io_prep_preadv_pi(struct iocb *iocb, int fd, const struct iovec *iov,
>>> int iovcnt, long long offset, const void *pi,
>>> size_t pi_count);
>>>
>> This is also what I've envisioned.
>> Updating io_prep / async I/O is reasonably easy as its been using a
>> separate structure for passing in the I/O details.
>>
>> Normal read/write calls don't really map as you simply don't have
>> enough parameter to feed PI information into the kernel.
>> So for that you'd need to invent a new interface / syscall.
>>
>> For aio we just need to add additional fields to an existing structure.
>>
>> So yeah, I'd be interested in that discussion as well.
Sure, it's easy to start there, but then you eventually end up having to
add a non-aio interface as well. Let's not take the latter off the
table.
> Me too, in multiple fronts. It's part of my general concern about
> "things we would like for user-mode servers"
>
> I think that the current aio and libaio Interface is broken for a long
> time, for multitude of reasons. For instance the nested structure definitions
> are COMPAT broken
News to me. I run the libaio test harness built with -m32 on 64 bit
regularly. What, exactly, is broken?
> , and lots of missing pieces. (For example search in archives
> for why bsg does not support sg-lists.)
> And there are all these additions that everyone wants on top, that call for
> a new interface anyway.
What was proposed above does not require a new interface. It's just an
additional IO_CMD_*. I'm not saying there aren't reasons for a new
interface, it's just I didn't see any in this thread.
> So I would like to see a deep fixup of this interface, with an aio version2
> that can take into considerations, all of future needs including these
> above. Kernel code will be very happy to be implemented with the new, interface
> and a COMPAT layer could be put in place for the old interface.
>
> All interested parties should bring to the table what is the extension/changes
> they need. And we can try and union all of them together.
>
> (My addition is for support of sg_lists to bsg, in a way that makes Tomo happy
> I know that qemu was wanting this for a while as well as the multitude of
> user-mode servers)
I'm not sure how that's directly related to aio, but ok. If we're going
to rewrite the aio code, I think Zach's acall would be a good start, at
least on the API front:
http://lwn.net/Articles/316806/
Cheers,
Jeff
next prev parent reply other threads:[~2013-02-07 16:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 19:51 [LSF/MM TOPIC][ATTEND] protection information and userspace Ben Myers
2013-02-06 20:24 ` Darrick J. Wong
2013-02-06 20:34 ` Chuck Lever
2013-02-07 9:40 ` Joel Becker
2013-02-07 10:01 ` Darrick J. Wong
2013-02-07 11:27 ` Hannes Reinecke
2013-02-07 12:08 ` Boaz Harrosh
2013-02-07 12:16 ` Boaz Harrosh
2013-02-07 12:33 ` Hannes Reinecke
2013-02-07 12:54 ` Boaz Harrosh
2013-02-07 12:29 ` Bart Van Assche
2013-02-07 12:47 ` Boaz Harrosh
2013-02-07 16:19 ` Jeff Moyer [this message]
2013-02-07 17:27 ` Zach Brown
2013-02-07 17:36 ` Joel Becker
2013-02-07 21:04 ` J. Bruce Fields
2013-02-08 9:38 ` Joel Becker
2013-02-07 19:12 ` Martin K. Petersen
2013-02-08 9:36 ` Joel Becker
2013-02-07 19:09 ` Martin K. Petersen
2013-02-07 23:45 ` Darrick J. Wong
2013-02-07 23:59 ` Martin K. Petersen
2013-02-07 19:20 ` Martin K. Petersen
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=x497gmkgkpc.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=bharrosh@panasas.com \
--cc=bpm@sgi.com \
--cc=chuck.lever@oracle.com \
--cc=darrick.wong@oracle.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@suse.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=martin.petersen@oracle.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).