Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Damien Le Moal
On 2020/07/21 10:15, Matthew Wilcox wrote: > On Tue, Jul 21, 2020 at 12:59:59AM +, Damien Le Moal wrote: >> On 2020/07/21 5:17, Kanchan Joshi wrote: >>> On Mon, Jul 20, 2020 at 10:44 PM Matthew Wilcox wrote: struct io_uring_cqe { __u64 user_data; /* sqe->data submissi

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Jens Axboe
On 7/20/20 7:15 PM, Matthew Wilcox wrote: >> Also, the completed size should be in res in the first cqe to follow >> io_uring current interface, no ?. The second cqe would use the res64 >> field to return the written offset. Wasn't that the plan ? > > two cqes for one sqe seems like a bad idea to

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Matthew Wilcox
On Tue, Jul 21, 2020 at 12:59:59AM +, Damien Le Moal wrote: > On 2020/07/21 5:17, Kanchan Joshi wrote: > > On Mon, Jul 20, 2020 at 10:44 PM Matthew Wilcox wrote: > >> struct io_uring_cqe { > >> __u64 user_data; /* sqe->data submission passed back */ > >> - __s32 res;

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Damien Le Moal
On 2020/07/21 5:17, Kanchan Joshi wrote: > On Mon, Jul 20, 2020 at 10:44 PM Matthew Wilcox wrote: >> >> On Mon, Jul 20, 2020 at 10:19:57PM +0530, Kanchan Joshi wrote: >>> On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: If we are doing this for zone-append (and not general cases), "__s64

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Mon, Jul 20, 2020 at 10:44 PM Matthew Wilcox wrote: > > On Mon, Jul 20, 2020 at 10:19:57PM +0530, Kanchan Joshi wrote: > > On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: > > > If we are doing this for zone-append (and not general cases), "__s64 > > > res64" should work -. > > > 64 bits =

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Matthew Wilcox
On Mon, Jul 20, 2020 at 10:19:57PM +0530, Kanchan Joshi wrote: > On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: > > If we are doing this for zone-append (and not general cases), "__s64 > > res64" should work -. > > 64 bits = 1 (sign) + 23 (bytes-copied: cqe->res) + 40 > > (written-location:

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:13 PM Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 06:59:45PM +0530, Kanchan Joshi wrote: > > > block doesn't work for the case of writes to files that don't have > > > to be aligned in any way. And that I think is the more broadly > > > applicable use case than

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: > > On Fri, Jul 10, 2020 at 7:21 PM Matthew Wilcox wrote: > > > > On Fri, Jul 10, 2020 at 02:49:32PM +0100, Christoph Hellwig wrote: > > > On Fri, Jul 10, 2020 at 02:48:24PM +0100, Matthew Wilcox wrote: > > > > If we're going to go the route of

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:39 PM Jens Axboe wrote: > > On 7/10/20 7:10 AM, Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > >> Append required special treatment (conversion for sector to bytes) for > >> io_uring. > >> And we were planning a user-space w

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:21 PM Matthew Wilcox wrote: > > On Fri, Jul 10, 2020 at 02:49:32PM +0100, Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 02:48:24PM +0100, Matthew Wilcox wrote: > > > If we're going to go the route of changing the CQE, how about: > > > > > > struct io_uring_cqe { >

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Jens Axboe
On 7/10/20 7:10 AM, Christoph Hellwig wrote: > On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: >> Append required special treatment (conversion for sector to bytes) for >> io_uring. >> And we were planning a user-space wrapper to abstract that. >> >> But good part (as it seems now)

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 6:59 PM Kanchan Joshi wrote: > > On Fri, Jul 10, 2020 at 6:39 PM Christoph Hellwig wrote: > > > > On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > > > It might, if you have IRQ context for the completion. task_work isn't > > > expensive, however. It's not like

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 02:49:32PM +0100, Christoph Hellwig wrote: > On Fri, Jul 10, 2020 at 02:48:24PM +0100, Matthew Wilcox wrote: > > If we're going to go the route of changing the CQE, how about: > > > > struct io_uring_cqe { > > __u64 user_data; /* sqe->data submission passed

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 02:48:24PM +0100, Matthew Wilcox wrote: > If we're going to go the route of changing the CQE, how about: > > struct io_uring_cqe { > __u64 user_data; /* sqe->data submission passed back */ > -__s32 res;/* result code for this event */

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 02:10:54PM +0100, Christoph Hellwig wrote: > On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > > Append required special treatment (conversion for sector to bytes) for > > io_uring. > > And we were planning a user-space wrapper to abstract that. > > > > But

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 06:59:45PM +0530, Kanchan Joshi wrote: > > block doesn't work for the case of writes to files that don't have > > to be aligned in any way. And that I think is the more broadly > > applicable use case than zone append on block devices. > > But when can it happen that we do

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 6:39 PM Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > > It might, if you have IRQ context for the completion. task_work isn't > > expensive, however. It's not like a thread offload. > > > > > Using flags have not been liked here,

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > Append required special treatment (conversion for sector to bytes) for > io_uring. > And we were planning a user-space wrapper to abstract that. > > But good part (as it seems now) was: append result went along with cflags at > virt

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > It might, if you have IRQ context for the completion. task_work isn't > expensive, however. It's not like a thread offload. > > > Using flags have not been liked here, but given the upheaval involved so > > far I have begun to feel - it

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 12:20 AM Jens Axboe wrote: > > On 7/9/20 12:36 PM, Kanchan Joshi wrote: > > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: > >> > >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: > >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > > We don't actually ne

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Pavel Begunkov
On 09/07/2020 21:50, Pavel Begunkov wrote: > On 09/07/2020 21:36, Kanchan Joshi wrote: >> On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >>> >>> On 7/9/20 8:00 AM, Christoph Hellwig wrote: On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: >> We don't actually need any new fiel

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Pavel Begunkov
On 09/07/2020 21:36, Kanchan Joshi wrote: > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >> >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > We don't actually need any new field at all. By the time the write > returned ki

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Jens Axboe
On 7/9/20 12:36 PM, Kanchan Joshi wrote: > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >> >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > We don't actually need any new field at all. By the time the write > returned ki_

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Kanchan Joshi
On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: > > On 7/9/20 8:00 AM, Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > >>> We don't actually need any new field at all. By the time the write > >>> returned ki_pos contains the offset after the write, and

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Jens Axboe
On 7/9/20 8:00 AM, Christoph Hellwig wrote: > On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: >>> We don't actually need any new field at all. By the time the write >>> returned ki_pos contains the offset after the write, and the res >>> argument to ->ki_complete contains the amount of

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > > We don't actually need any new field at all. By the time the write > > returned ki_pos contains the offset after the write, and the res > > argument to ->ki_complete contains the amount of bytes written, which > > allow us to triviall

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Jens Axboe
On 7/9/20 4:15 AM, Christoph Hellwig wrote: > On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: >>> diff --git a/fs/io_uring.c b/fs/io_uring.c >>> index 155f3d8..cbde4df 100644 >>> --- a/fs/io_uring.c >>> +++ b/fs/io_uring.c >>> @@ -402,6 +402,8 @@ struct io_rw { >>> struct kiocb

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Christoph Hellwig
On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: > > diff --git a/fs/io_uring.c b/fs/io_uring.c > > index 155f3d8..cbde4df 100644 > > --- a/fs/io_uring.c > > +++ b/fs/io_uring.c > > @@ -402,6 +402,8 @@ struct io_rw { > > struct kiocbkiocb; > > u64

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Kanchan Joshi
On Wed, Jul 08, 2020 at 03:22:51PM +0100, Matthew Wilcox wrote: On Wed, Jul 08, 2020 at 06:28:05PM +0530, Kanchan Joshi wrote: The last thing is about the flag used to trigger this processing. Will it be fine to intoduce new flag (RWF_APPEND2 or RWF_APPEND_OFFSET) instead of using RWF_APPEND? N

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Kanchan Joshi
On Wed, Jul 08, 2020 at 10:38:44AM -0600, Jens Axboe wrote: On 7/8/20 10:33 AM, Matthew Wilcox wrote: On Wed, Jul 08, 2020 at 06:08:12PM +0200, Javier González wrote: I just wanted to get clarification there, because to me it sounded like you expected Kanchan to do it, and Kanchan assuming it "

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Javier González
> On 8 Jul 2020, at 18.34, Matthew Wilcox wrote: > > On Wed, Jul 08, 2020 at 06:08:12PM +0200, Javier González wrote: >>> I just wanted to get clarification there, because to me it sounded like >>> you expected Kanchan to do it, and Kanchan assuming it "was sorted". I'd >>> consider that a pre

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Jens Axboe
On 7/8/20 10:33 AM, Matthew Wilcox wrote: > On Wed, Jul 08, 2020 at 06:08:12PM +0200, Javier González wrote: >>> I just wanted to get clarification there, because to me it sounded like >>> you expected Kanchan to do it, and Kanchan assuming it "was sorted". I'd >>> consider that a prerequisite for

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Matthew Wilcox
On Wed, Jul 08, 2020 at 06:08:12PM +0200, Javier González wrote: > > I just wanted to get clarification there, because to me it sounded like > > you expected Kanchan to do it, and Kanchan assuming it "was sorted". I'd > > consider that a prerequisite for the append series as far as io_uring is > >

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Javier González
> On 8 Jul 2020, at 17.06, Jens Axboe wrote: > > On 7/8/20 9:02 AM, Matthew Wilcox wrote: >>> On Wed, Jul 08, 2020 at 08:59:50AM -0600, Jens Axboe wrote: >>> On 7/8/20 8:58 AM, Matthew Wilcox wrote: On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: > On 7/8/20 6:58 AM, Kanch

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Jens Axboe
On 7/8/20 9:02 AM, Matthew Wilcox wrote: > On Wed, Jul 08, 2020 at 08:59:50AM -0600, Jens Axboe wrote: >> On 7/8/20 8:58 AM, Matthew Wilcox wrote: >>> On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: On 7/8/20 6:58 AM, Kanchan Joshi wrote: >>> +#define IOCB_NO_CMPL (15

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Matthew Wilcox
On Wed, Jul 08, 2020 at 08:59:50AM -0600, Jens Axboe wrote: > On 7/8/20 8:58 AM, Matthew Wilcox wrote: > > On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: > >> On 7/8/20 6:58 AM, Kanchan Joshi wrote: > > +#define IOCB_NO_CMPL (15 << 28) > > > > struct kiocb { > >>

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Jens Axboe
On 7/8/20 8:58 AM, Matthew Wilcox wrote: > On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: >> On 7/8/20 6:58 AM, Kanchan Joshi wrote: > +#define IOCB_NO_CMPL (15 << 28) > > struct kiocb { > [...] > - void (*ki_complete)(struct kiocb *iocb, long ret, long

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Matthew Wilcox
On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: > On 7/8/20 6:58 AM, Kanchan Joshi wrote: > >>> +#define IOCB_NO_CMPL (15 << 28) > >>> > >>> struct kiocb { > >>> [...] > >>> - void (*ki_complete)(struct kiocb *iocb, long ret, long ret2); > >>> + loff_t __user *ki_uposp; > >

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Jens Axboe
On 7/8/20 6:58 AM, Kanchan Joshi wrote: > On Tue, Jul 07, 2020 at 04:37:55PM -0600, Jens Axboe wrote: >> On 7/7/20 4:18 PM, Matthew Wilcox wrote: >>> On Tue, Jul 07, 2020 at 02:40:06PM -0600, Jens Axboe wrote: >> so we have another 24 bytes before io_kiocb takes up another cacheline. >> If

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Matthew Wilcox
On Wed, Jul 08, 2020 at 06:28:05PM +0530, Kanchan Joshi wrote: > The last thing is about the flag used to trigger this processing. Will it be > fine to intoduce new flag (RWF_APPEND2 or RWF_APPEND_OFFSET) > instead of using RWF_APPEND? > > New flag will do what RWF_APPEND does and will also return

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Kanchan Joshi
On Tue, Jul 07, 2020 at 04:37:55PM -0600, Jens Axboe wrote: On 7/7/20 4:18 PM, Matthew Wilcox wrote: On Tue, Jul 07, 2020 at 02:40:06PM -0600, Jens Axboe wrote: so we have another 24 bytes before io_kiocb takes up another cacheline. If that's a serious problem, I have an idea about how to shrin

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Jens Axboe
On 7/7/20 4:18 PM, Matthew Wilcox wrote: > On Tue, Jul 07, 2020 at 02:40:06PM -0600, Jens Axboe wrote: so we have another 24 bytes before io_kiocb takes up another cacheline. If that's a serious problem, I have an idea about how to shrink struct kiocb by 8 bytes so struct io_rw would

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Matthew Wilcox
On Tue, Jul 07, 2020 at 02:40:06PM -0600, Jens Axboe wrote: > >> so we have another 24 bytes before io_kiocb takes up another cacheline. > >> If that's a serious problem, I have an idea about how to shrink struct > >> kiocb by 8 bytes so struct io_rw would have space to store another > >> pointer.

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Jens Axboe
On 7/7/20 2:23 PM, Kanchan Joshi wrote: > On Tue, Jul 07, 2020 at 04:52:37PM +0100, Matthew Wilcox wrote: >> On Tue, Jul 07, 2020 at 08:41:05PM +0530, Kanchan Joshi wrote: >>> On Mon, Jul 06, 2020 at 03:32:08PM +0100, Matthew Wilcox wrote: On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe w

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Kanchan Joshi
On Tue, Jul 07, 2020 at 04:52:37PM +0100, Matthew Wilcox wrote: On Tue, Jul 07, 2020 at 08:41:05PM +0530, Kanchan Joshi wrote: On Mon, Jul 06, 2020 at 03:32:08PM +0100, Matthew Wilcox wrote: > On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe wrote: > > On 7/6/20 8:10 AM, Matthew Wilcox wrote

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Christoph Hellwig
On Tue, Jul 07, 2020 at 04:52:37PM +0100, Matthew Wilcox wrote: > But userspace has to _do_ something with that information anyway. So > it must already have somewhere to put that information. > > I do think that interpretation of that field should be a separate flag > from WRITE_APPEND so apps w

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Matthew Wilcox
On Tue, Jul 07, 2020 at 08:41:05PM +0530, Kanchan Joshi wrote: > On Mon, Jul 06, 2020 at 03:32:08PM +0100, Matthew Wilcox wrote: > > On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe wrote: > > > On 7/6/20 8:10 AM, Matthew Wilcox wrote: > > > > On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axbo

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-07 Thread Kanchan Joshi
On Mon, Jul 06, 2020 at 03:32:08PM +0100, Matthew Wilcox wrote: On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe wrote: On 7/6/20 8:10 AM, Matthew Wilcox wrote: > On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axboe wrote: >> On 7/5/20 3:09 PM, Matthew Wilcox wrote: >>> On Sun, Jul 05, 2020

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-06 Thread Jens Axboe
On 7/6/20 8:32 AM, Matthew Wilcox wrote: > On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe wrote: >> On 7/6/20 8:10 AM, Matthew Wilcox wrote: >>> On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axboe wrote: On 7/5/20 3:09 PM, Matthew Wilcox wrote: > On Sun, Jul 05, 2020 at 03:00:47PM -

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-06 Thread Matthew Wilcox
On Mon, Jul 06, 2020 at 08:27:17AM -0600, Jens Axboe wrote: > On 7/6/20 8:10 AM, Matthew Wilcox wrote: > > On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axboe wrote: > >> On 7/5/20 3:09 PM, Matthew Wilcox wrote: > >>> On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: > On 7/5/20 12:

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-06 Thread Jens Axboe
On 7/6/20 8:10 AM, Matthew Wilcox wrote: > On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axboe wrote: >> On 7/5/20 3:09 PM, Matthew Wilcox wrote: >>> On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: On 7/5/20 12:47 PM, Kanchan Joshi wrote: > From: Selvakumar S > > For

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-06 Thread Matthew Wilcox
On Sun, Jul 05, 2020 at 03:12:50PM -0600, Jens Axboe wrote: > On 7/5/20 3:09 PM, Matthew Wilcox wrote: > > On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: > >> On 7/5/20 12:47 PM, Kanchan Joshi wrote: > >>> From: Selvakumar S > >>> > >>> For zone-append, block-layer will return zone-re

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-06 Thread Kanchan Joshi
On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: On 7/5/20 12:47 PM, Kanchan Joshi wrote: From: Selvakumar S For zone-append, block-layer will return zone-relative offset via ret2 of ki_complete interface. Make changes to collect it, and send to user-space using cqe->flags. Signed-

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-05 Thread Jens Axboe
On 7/5/20 3:09 PM, Matthew Wilcox wrote: > On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: >> On 7/5/20 12:47 PM, Kanchan Joshi wrote: >>> From: Selvakumar S >>> >>> For zone-append, block-layer will return zone-relative offset via ret2 >>> of ki_complete interface. Make changes to col

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-05 Thread Matthew Wilcox
On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: > On 7/5/20 12:47 PM, Kanchan Joshi wrote: > > From: Selvakumar S > > > > For zone-append, block-layer will return zone-relative offset via ret2 > > of ki_complete interface. Make changes to collect it, and send to > > user-space using c

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-05 Thread Jens Axboe
On 7/5/20 12:47 PM, Kanchan Joshi wrote: > From: Selvakumar S > > For zone-append, block-layer will return zone-relative offset via ret2 > of ki_complete interface. Make changes to collect it, and send to > user-space using cqe->flags. > > Signed-off-by: Selvakumar S > Signed-off-by: Kanchan Jo

[PATCH v3 4/4] io_uring: add support for zone-append

2020-07-05 Thread Kanchan Joshi
From: Selvakumar S For zone-append, block-layer will return zone-relative offset via ret2 of ki_complete interface. Make changes to collect it, and send to user-space using cqe->flags. Signed-off-by: Selvakumar S Signed-off-by: Kanchan Joshi Signed-off-by: Nitesh Shetty Signed-off-by: Javier