We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4dbe2a + 9ce1221 commit f32f827Copy full SHA for f32f827
io_uring/futex.c
@@ -337,6 +337,7 @@ int io_futex_wait(struct io_kiocb *req, unsigned int issue_flags)
337
goto done_unlock;
338
}
339
340
+ req->flags |= REQ_F_ASYNC_DATA;
341
req->async_data = ifd;
342
ifd->q = futex_q_init;
343
ifd->q.bitset = iof->futex_mask;
@@ -359,6 +360,8 @@ int io_futex_wait(struct io_kiocb *req, unsigned int issue_flags)
359
360
if (ret < 0)
361
req_set_fail(req);
362
io_req_set_res(req, ret, 0);
363
+ req->async_data = NULL;
364
+ req->flags &= ~REQ_F_ASYNC_DATA;
365
kfree(ifd);
366
return IOU_OK;
367
0 commit comments