io_uring: change the poll type to be 32-bits
authorJiufei Xue <jiufei.xue@linux.alibaba.com>
Wed, 17 Jun 2020 09:53:55 +0000 (17:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jun 2020 21:06:05 +0000 (15:06 -0600)
commit58cfc272845f577aaf3702c629cbefc0e71a65ff
tree9d532a93497b6551e44812c173f8f92e8572f343
parent56952e91acc93ed624fe9da840900defb75f1323
io_uring: change the poll type to be 32-bits

poll events should be 32-bits to cover EPOLLEXCLUSIVE.

Explicit word-swap the poll32_events for big endian to make sure the ABI
is not changed.  We call this feature IORING_FEAT_POLL_32BITS,
applications who want to use EPOLLEXCLUSIVE should check the feature bit
first.

Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h
tools/io_uring/liburing.h