File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -176,16 +176,6 @@ static struct io_async_msghdr *io_msg_alloc_async(struct io_kiocb *req)
176
176
return hdr ;
177
177
}
178
178
179
- /* assign new iovec to kmsg, if we need to */
180
- static void io_net_vec_assign (struct io_kiocb * req , struct io_async_msghdr * kmsg ,
181
- struct iovec * iov )
182
- {
183
- if (iov ) {
184
- req -> flags |= REQ_F_NEED_CLEANUP ;
185
- io_vec_reset_iovec (& kmsg -> vec , iov , kmsg -> msg .msg_iter .nr_segs );
186
- }
187
- }
188
-
189
179
static inline void io_mshot_prep_retry (struct io_kiocb * req ,
190
180
struct io_async_msghdr * kmsg )
191
181
{
@@ -217,7 +207,11 @@ static int io_net_import_vec(struct io_kiocb *req, struct io_async_msghdr *iomsg
217
207
& iomsg -> msg .msg_iter , io_is_compat (req -> ctx ));
218
208
if (unlikely (ret < 0 ))
219
209
return ret ;
220
- io_net_vec_assign (req , iomsg , iov );
210
+
211
+ if (iov ) {
212
+ req -> flags |= REQ_F_NEED_CLEANUP ;
213
+ io_vec_reset_iovec (& iomsg -> vec , iov , iomsg -> msg .msg_iter .nr_segs );
214
+ }
221
215
return 0 ;
222
216
}
223
217
You can’t perform that action at this time.
0 commit comments