summaryrefslogtreecommitdiff
path: root/samples/configfs
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-01-21 04:38:56 -0800
committerJens Axboe <axboe@kernel.dk>2022-01-23 09:12:53 -0700
commitb36a2050040b2d839bdc044007cdd57101d7f881 (patch)
tree55dfb795fd070de6f723cec1b4edd56477466fd1 /samples/configfs
parentdd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0 (diff)
io_uring: fix bug in slow unregistering of nodes
In some cases io_rsrc_ref_quiesce will call io_rsrc_node_switch_start, and then immediately flush the delayed work queue &ctx->rsrc_put_work. However the percpu_ref_put does not immediately destroy the node, it will be called asynchronously via RCU. That ends up with io_rsrc_node_ref_zero only being called after rsrc_put_work has been flushed, and so the process ends up sleeping for 1 second unnecessarily. This patch executes the put code immediately if we are busy quiescing. Fixes: 4a38aed2a0a7 ("io_uring: batch reap of dead file registrations") Signed-off-by: Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220121123856.3557884-1-dylany@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples/configfs')
0 files changed, 0 insertions, 0 deletions