commit | fbe38120eb1dec94280d0381ce4aea52c44367b1 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Apr 02 12:12:18 2024 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Apr 10 16:23:04 2024 -0600 |
tree | 4af6446af26ebfe51fe2da7cc22a7fc36fafcc1f | |
parent | 40f45fe8eb7efd70e772447dc98bb50c5e323ccb [diff] |
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>