diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-09 20:16:22 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-10 16:33:23 -0700 |
commit | 10d59345578a116042c1a5d737a18234aaf3e0e6 (patch) | |
tree | e9916509157949e358b6c767cd6de29e6fc9690c /LICENSES | |
parent | ebfcd8955c0b52eb793bcbc9e71140e3d0cdb228 (diff) | |
download | lwn-10d59345578a116042c1a5d737a18234aaf3e0e6.tar.gz lwn-10d59345578a116042c1a5d737a18234aaf3e0e6.zip |
io_uring: add sockets to list of files that support non-blocking issue
In chasing a performance issue between using IORING_OP_RECVMSG and
IORING_OP_READV on sockets, tracing showed that we always punt the
socket reads to async offload. This is due to io_file_supports_async()
not checking for S_ISSOCK on the inode. Since sockets supports the
O_NONBLOCK (or MSG_DONTWAIT) flag just fine, add sockets to the list
of file types that we can do a non-blocking issue to.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions