public inbox for linux-kernel@vger.kernel.org
 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; 42+ 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] 42+ messages in thread

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

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20200617172653epcas5p488de50090415eb802e62acc0e23d8812@epcas5p4.samsung.com>
2020-06-17 17:23 ` [PATCH 0/3] zone-append support in aio and io-uring Kanchan Joshi
2020-06-17 17:23   ` [PATCH 1/3] fs,block: Introduce IOCB_ZONE_APPEND and direct-io handling Kanchan Joshi
2020-06-17 19:02     ` Pavel Begunkov
2020-06-18  7:16     ` Damien Le Moal
2020-06-18 18:35       ` Kanchan Joshi
2020-06-17 17:23   ` [PATCH 2/3] aio: add support for zone-append Kanchan Joshi
2020-06-18  7:33     ` Damien Le Moal
2020-06-17 17:23   ` [PATCH 3/3] io_uring: " 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
2020-06-17 17:42   ` [PATCH 0/3] zone-append support in aio and io-uring Matthew Wilcox
2020-06-18  6:56   ` Christoph Hellwig
2020-06-18  8:29     ` Javier González
2020-06-18 17:52     ` Kanchan Joshi
2020-06-19  3:08       ` Damien Le Moal
2020-06-19  7:56       ` Christoph Hellwig
2020-06-18  8:04   ` Matias Bjørling
2020-06-18  8:27     ` Javier González
2020-06-18  8:32       ` Matias Bjørling
2020-06-18  8:39         ` Javier González
2020-06-18  8:46           ` Matias Bjørling
2020-06-18 14:16     ` Christoph Hellwig
2020-06-18 19:21     ` Kanchan Joshi
2020-06-18 20:04       ` Matias Bjørling
2020-06-19  1:03         ` Damien Le Moal
2020-06-19 15:22 [PATCH 3/3] io_uring: add support for zone-append Alexey Dobriyan
2020-06-19 15:23 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox