File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -251,17 +251,6 @@ static void io_futex_wake_fn(struct wake_q_head *wake_q, struct futex_q *q)
251
251
io_req_task_work_add (req );
252
252
}
253
253
254
- static struct io_futex_data * io_alloc_ifd (struct io_ring_ctx * ctx )
255
- {
256
- struct io_futex_data * ifd ;
257
-
258
- ifd = io_alloc_cache_get (& ctx -> futex_cache );
259
- if (ifd )
260
- return ifd ;
261
-
262
- return kmalloc (sizeof (struct io_futex_data ), GFP_NOWAIT );
263
- }
264
-
265
254
int io_futexv_wait (struct io_kiocb * req , unsigned int issue_flags )
266
255
{
267
256
struct io_futex * iof = io_kiocb_to_cmd (req , struct io_futex );
@@ -331,7 +320,7 @@ int io_futex_wait(struct io_kiocb *req, unsigned int issue_flags)
331
320
}
332
321
333
322
io_ring_submit_lock (ctx , issue_flags );
334
- ifd = io_alloc_ifd ( ctx );
323
+ ifd = io_cache_alloc ( & ctx -> futex_cache , GFP_NOWAIT , NULL );
335
324
if (!ifd ) {
336
325
ret = - ENOMEM ;
337
326
goto done_unlock ;
You can’t perform that action at this time.
0 commit comments