File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1003,9 +1003,6 @@ int io_sendzc(struct io_kiocb *req, unsigned int issue_flags)
1003
1003
unsigned msg_flags , cflags ;
1004
1004
int ret , min_ret = 0 ;
1005
1005
1006
- if (!(req -> flags & REQ_F_POLLED ) &&
1007
- (zc -> flags & IORING_RECVSEND_POLL_FIRST ))
1008
- return - EAGAIN ;
1009
1006
sock = sock_from_file (req -> file );
1010
1007
if (unlikely (!sock ))
1011
1008
return - ENOTSOCK ;
@@ -1030,6 +1027,10 @@ int io_sendzc(struct io_kiocb *req, unsigned int issue_flags)
1030
1027
msg .msg_namelen = zc -> addr_len ;
1031
1028
}
1032
1029
1030
+ if (!(req -> flags & REQ_F_POLLED ) &&
1031
+ (zc -> flags & IORING_RECVSEND_POLL_FIRST ))
1032
+ return io_setup_async_addr (req , addr , issue_flags );
1033
+
1033
1034
if (zc -> flags & IORING_RECVSEND_FIXED_BUF ) {
1034
1035
ret = io_import_fixed (WRITE , & msg .msg_iter , req -> imu ,
1035
1036
(u64 )(uintptr_t )zc -> buf , zc -> len );
You can’t perform that action at this time.
0 commit comments