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 005308f commit 4ff0b50Copy full SHA for 4ff0b50
io_uring/rsrc.h
@@ -144,15 +144,13 @@ static inline void io_req_set_rsrc_node(struct io_kiocb *req,
144
unsigned int issue_flags)
145
{
146
if (!req->rsrc_node) {
147
- req->rsrc_node = ctx->rsrc_node;
+ io_ring_submit_lock(ctx, issue_flags);
148
149
- if (!(issue_flags & IO_URING_F_UNLOCKED)) {
150
- lockdep_assert_held(&ctx->uring_lock);
+ lockdep_assert_held(&ctx->uring_lock);
151
152
- io_charge_rsrc_node(ctx);
153
- } else {
154
- percpu_ref_get(&req->rsrc_node->refs);
155
- }
+ req->rsrc_node = ctx->rsrc_node;
+ io_charge_rsrc_node(ctx);
+ io_ring_submit_unlock(ctx, issue_flags);
156
}
157
158
0 commit comments