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, 11 Apr 2021 23:41:59 +0000 (17:41 -0600)
commit464dca612bc6bceceafadfb4bf28f1a27ccc4632
treeffe4350807f8f5fc6629da58e3d37e24e360ae39
parent9532b99bd9ca3f8f2f17b38500a8901ac1e7baee
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