Skip to content
Commit fbe38120 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent 40f45fe8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment