Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • net
  • socket.c
Find file BlameHistoryPermalink
  • Jens Axboe's avatar
    net: set FMODE_NOWAIT for sockets · fe34db06
    Jens Axboe authored May 09, 2023
    
    
    The socket read/write functions deal with O_NONBLOCK and IOCB_NOWAIT
    just fine, so we can flag them as being FMODE_NOWAIT compliant. With
    this, we can remove socket special casing in io_uring when checking
    if a file type is sane for nonblocking IO, and it's also the defined
    way to flag file types as such in the kernel.
    
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Eric Dumazet <edumazet@google.com>
    Cc: Jakub Kicinski <kuba@kernel.org>
    Cc: netdev@vger.kernel.org
    Reviewed-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Link: https://lore.kernel.org/r/20230509151910.183637-2-axboe@kernel.dk
    
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    fe34db06
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7