Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/kbuf: use 'ctx' consistently

There's already a local ctx variable, yet the ring lock and unlock
helpers use req->ctx. use ctx consistently.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -2
+2 -2
io_uring/kbuf.c
··· 225 225 struct io_br_sel sel = { }; 226 226 struct io_buffer_list *bl; 227 227 228 - io_ring_submit_lock(req->ctx, issue_flags); 228 + io_ring_submit_lock(ctx, issue_flags); 229 229 230 230 bl = io_buffer_get_list(ctx, buf_group); 231 231 if (likely(bl)) { ··· 234 234 else 235 235 sel.addr = io_provided_buffer_select(req, len, bl); 236 236 } 237 - io_ring_submit_unlock(req->ctx, issue_flags); 237 + io_ring_submit_unlock(ctx, issue_flags); 238 238 return sel; 239 239 } 240 240