signalfd: convert to ->read_iter()
authorJens Axboe <axboe@kernel.dk>
Tue, 2 Apr 2024 18:12:18 +0000 (12:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Apr 2024 22:23:04 +0000 (16:23 -0600)
commitfbe38120eb1dec94280d0381ce4aea52c44367b1
tree4af6446af26ebfe51fe2da7cc22a7fc36fafcc1f
parent40f45fe8eb7efd70e772447dc98bb50c5e323ccb
signalfd: convert to ->read_iter()

Rather than use the older style ->read() hook, use ->read_iter() so that
signalfd can support both O_NONBLOCK and IOCB_NOWAIT for non-blocking
read attempts.

Split the fd setup into two parts, so that signalfd can mark the file
mode with FMODE_NOWAIT before installing it into the process table.

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