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 4ea15b5 commit 7d481e0Copy full SHA for 7d481e0
io_uring/rsrc.c
@@ -273,6 +273,11 @@ __cold static int io_rsrc_ref_quiesce(struct io_rsrc_data *data,
273
if (io_put_rsrc_data_ref(data))
274
return 0;
275
276
+ if (ctx->flags & IORING_SETUP_DEFER_TASKRUN) {
277
+ atomic_set(&ctx->cq_wait_nr, 1);
278
+ smp_mb();
279
+ }
280
+
281
data->quiesce = true;
282
do {
283
prepare_to_wait(&ctx->rsrc_quiesce_wq, &we, TASK_INTERRUPTIBLE);
@@ -298,6 +303,10 @@ __cold static int io_rsrc_ref_quiesce(struct io_rsrc_data *data,
298
303
299
304
finish_wait(&ctx->rsrc_quiesce_wq, &we);
300
305
data->quiesce = false;
306
307
+ atomic_set(&ctx->cq_wait_nr, 0);
308
309
301
310
return ret;
302
311
}
312
0 commit comments