Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-23 Thread Jan Kara
On Sat 22-03-14 02:43:20, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 07:32:16PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:29:09PM -0700, Zach Brown wrote: I'll admit, though, that I don't really like having to fetch the 'has' bits first to find out how large the rest of

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-23 Thread Darrick J. Wong
On Sun, Mar 23, 2014 at 03:02:44PM +0100, Jan Kara wrote: On Sat 22-03-14 02:43:20, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 07:32:16PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:29:09PM -0700, Zach Brown wrote: I'll admit, though, that I don't really like having to

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-22 Thread Darrick J. Wong
On Fri, Mar 21, 2014 at 07:32:16PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:29:09PM -0700, Zach Brown wrote: On Fri, Mar 21, 2014 at 03:54:37PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:44:10PM -0400, Benjamin LaHaise wrote: I'm inclined to agree with

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Jeff Moyer
Darrick J. Wong darrick.w...@oracle.com writes: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to receive the information alongside a disk read. The interface is an extension to the AIO

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Zach Brown
On Thu, Mar 20, 2014 at 09:30:41PM -0700, Darrick J. Wong wrote: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to receive the information alongside a disk read. The interface is an extension

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Darrick J. Wong
On Fri, Mar 21, 2014 at 10:57:31AM -0400, Jeff Moyer wrote: Darrick J. Wong darrick.w...@oracle.com writes: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to receive the information

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Benjamin LaHaise
Hi folks, On Fri, Mar 21, 2014 at 11:23:32AM -0700, Zach Brown wrote: On Thu, Mar 20, 2014 at 09:30:41PM -0700, Darrick J. Wong wrote: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Darrick J. Wong
On Fri, Mar 21, 2014 at 11:23:32AM -0700, Zach Brown wrote: On Thu, Mar 20, 2014 at 09:30:41PM -0700, Darrick J. Wong wrote: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to receive the

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Darrick J. Wong
On Fri, Mar 21, 2014 at 05:44:10PM -0400, Benjamin LaHaise wrote: Hi folks, On Fri, Mar 21, 2014 at 11:23:32AM -0700, Zach Brown wrote: On Thu, Mar 20, 2014 at 09:30:41PM -0700, Darrick J. Wong wrote: This RFC provides a rough implementation of a mechanism to allow userspace to attach

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Zach Brown
On Fri, Mar 21, 2014 at 02:39:59PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 10:57:31AM -0400, Jeff Moyer wrote: Darrick J. Wong darrick.w...@oracle.com writes: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g.

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Zach Brown
On Fri, Mar 21, 2014 at 03:20:25PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 11:23:32AM -0700, Zach Brown wrote: On Thu, Mar 20, 2014 at 09:30:41PM -0700, Darrick J. Wong wrote: This RFC provides a rough implementation of a mechanism to allow userspace to attach protection

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Zach Brown
On Fri, Mar 21, 2014 at 03:54:37PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:44:10PM -0400, Benjamin LaHaise wrote: I'm inclined to agree with Zach on this item. Ultimately, we need an extensible data structure that can be grown without completely revising the ABI as new

Re: [RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-21 Thread Darrick J. Wong
On Fri, Mar 21, 2014 at 05:29:09PM -0700, Zach Brown wrote: On Fri, Mar 21, 2014 at 03:54:37PM -0700, Darrick J. Wong wrote: On Fri, Mar 21, 2014 at 05:44:10PM -0400, Benjamin LaHaise wrote: I'm inclined to agree with Zach on this item. Ultimately, we need an extensible data structure

[RFC PATCH 0/5] userspace PI passthrough via AIO/DIO

2014-03-20 Thread Darrick J. Wong
This RFC provides a rough implementation of a mechanism to allow userspace to attach protection information (e.g. T10 DIF) data to a disk write and to receive the information alongside a disk read. The interface is an extension to the AIO interface: two new commands (IOCB_CMD_P{READ,WRITE}VM) are