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.
1 parent 490e896 commit dd461afCopy full SHA for dd461af
fs/io_uring.c
@@ -1295,7 +1295,7 @@ static struct io_kiocb *io_get_fallback_req(struct io_ring_ctx *ctx)
1295
struct io_kiocb *req;
1296
1297
req = ctx->fallback_req;
1298
- if (!test_and_set_bit_lock(0, (unsigned long *) ctx->fallback_req))
+ if (!test_and_set_bit_lock(0, (unsigned long *) &ctx->fallback_req))
1299
return req;
1300
1301
return NULL;
@@ -1382,7 +1382,7 @@ static void __io_free_req(struct io_kiocb *req)
1382
if (likely(!io_is_fallback_req(req)))
1383
kmem_cache_free(req_cachep, req);
1384
else
1385
- clear_bit_unlock(0, (unsigned long *) req->ctx->fallback_req);
+ clear_bit_unlock(0, (unsigned long *) &req->ctx->fallback_req);
1386
}
1387
1388
struct req_batch {
0 commit comments