io_uring: mask in error/nval/hangup consistently for poll
authorJens Axboe <axboe@kernel.dk>
Fri, 19 Mar 2021 20:06:24 +0000 (14:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:26 +0000 (15:27 -0600)
commitc6eb90d57b8e817bc77c17100fffd9ce8a16473f
treee2149c7858c5d48ff722dedbabe7fea8c513ed05
parentfa9d53e2d6c04253a45d9147270f257bf1eb0233
io_uring: mask in error/nval/hangup consistently for poll

Instead of masking these in as part of regular POLL_ADD prep, do it in
io_init_poll_iocb(), and include NVAL as that's generally unmaskable,
and RDHUP alongside the HUP that is already set.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c