linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 3/3] io_uring: add support for zone-append
@ 2020-06-19 15:22 Alexey Dobriyan
  2020-06-19 15:23 ` Jens Axboe
  0 siblings, 1 reply; 20+ messages in thread
From: Alexey Dobriyan @ 2020-06-19 15:22 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, linux-block, javier.gonz, linux-aio, linux-fsdevel

> 	uint64_t val = cqe->res; // assuming non-error here
> 
> 	if (cqe->flags & IORING_CQE_F_ZONE_FOO)
> 		val |= (cqe->flags >> 16) << 32ULL;

Jens, ULL in shift doesn't do anything for widening the result.
You need

	val |= (uint64_t)(cqe->flags >> 16) << 32;

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [PATCH 0/3] zone-append support in aio and io-uring
@ 2020-06-17 17:23 Kanchan Joshi
       [not found] ` <CGME20200617172713epcas5p352f2907a12bd4ee3c97be1c7d8e1569e@epcas5p3.samsung.com>
  0 siblings, 1 reply; 20+ messages in thread
From: Kanchan Joshi @ 2020-06-17 17:23 UTC (permalink / raw)
  To: axboe, viro, bcrl
  Cc: linux-fsdevel, linux-kernel, linux-aio, io-uring, linux-block,
	selvakuma.s1, nj.shetty, javier.gonz, Kanchan Joshi

This patchset enables issuing zone-append using aio and io-uring direct-io interface.

For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application uses start LBA
of the zone to issue append. On completion 'res2' field is used to return
zone-relative offset.

For io-uring, this introduces three opcodes: IORING_OP_ZONE_APPEND/APPENDV/APPENDV_FIXED.
Since io_uring does not have aio-like res2, cqe->flags are repurposed to return zone-relative offset

Kanchan Joshi (1):
  aio: add support for zone-append

Selvakumar S (2):
  fs,block: Introduce IOCB_ZONE_APPEND and direct-io handling
  io_uring: add support for zone-append

 fs/aio.c                      |  8 +++++
 fs/block_dev.c                | 19 +++++++++++-
 fs/io_uring.c                 | 72 +++++++++++++++++++++++++++++++++++++++++--
 include/linux/fs.h            |  1 +
 include/uapi/linux/aio_abi.h  |  1 +
 include/uapi/linux/io_uring.h |  8 ++++-
 6 files changed, 105 insertions(+), 4 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-06-21 18:55 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-19 15:22 [PATCH 3/3] io_uring: add support for zone-append Alexey Dobriyan
2020-06-19 15:23 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2020-06-17 17:23 [PATCH 0/3] zone-append support in aio and io-uring Kanchan Joshi
     [not found] ` <CGME20200617172713epcas5p352f2907a12bd4ee3c97be1c7d8e1569e@epcas5p3.samsung.com>
2020-06-17 17:23   ` [PATCH 3/3] io_uring: add support for zone-append Kanchan Joshi
2020-06-17 18:55     ` Pavel Begunkov
2020-06-18  7:39     ` Damien Le Moal
2020-06-18  8:35       ` javier.gonz@samsung.com
2020-06-18  8:47         ` Damien Le Moal
2020-06-18  9:11           ` javier.gonz@samsung.com
2020-06-19  9:41             ` javier.gonz@samsung.com
2020-06-19 11:15               ` Matias Bjørling
2020-06-19 14:18                 ` Jens Axboe
2020-06-19 15:14                   ` Matias Bjørling
2020-06-19 15:20                     ` Jens Axboe
2020-06-19 15:40                       ` Matias Bjørling
2020-06-19 15:44                         ` Jens Axboe
2020-06-21 18:55                           ` javier.gonz@samsung.com
2020-06-19 14:15               ` Jens Axboe
2020-06-19 14:59                 ` Pavel Begunkov
2020-06-19 15:02                   ` Jens Axboe
2020-06-21 18:52                     ` javier.gonz@samsung.com

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).