io_uring/net: push IORING_CQE_F_SOCK_NONEMPTY into io_recv_finish()
authorJens Axboe <axboe@kernel.dk>
Wed, 17 May 2023 18:20:44 +0000 (12:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 May 2023 18:20:44 +0000 (12:20 -0600)
commit7d41bcb7f32fbeac05d6fab553821a228af18bee
tree1b6d5f43093be499b1c4c1757aec8fdbccd6a396
parent88fc8b8463b024df556d5c4245f2c273f22d83a1
io_uring/net: push IORING_CQE_F_SOCK_NONEMPTY into io_recv_finish()

Rather than have this logic in both io_recv() and io_recvmsg_multishot(),
push it into the handler they both call when finishing a receive
operation.

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