Linux block layer
 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
[parent not found: <CGME20200617172713epcas5p352f2907a12bd4ee3c97be1c7d8e1569e@epcas5p3.samsung.com>]

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
     [not found] <CGME20200617172713epcas5p352f2907a12bd4ee3c97be1c7d8e1569e@epcas5p3.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 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