@@ -38,8 +38,8 @@ static void io_double_unlock_ctx(struct io_ring_ctx *octx)
38
38
mutex_unlock (& octx -> uring_lock );
39
39
}
40
40
41
- static int io_double_lock_ctx (struct io_ring_ctx * octx ,
42
- unsigned int issue_flags )
41
+ static int io_lock_external_ctx (struct io_ring_ctx * octx ,
42
+ unsigned int issue_flags )
43
43
{
44
44
/*
45
45
* To ensure proper ordering between the two ctxs, we can only
@@ -154,7 +154,7 @@ static int __io_msg_ring_data(struct io_ring_ctx *target_ctx,
154
154
155
155
ret = - EOVERFLOW ;
156
156
if (target_ctx -> flags & IORING_SETUP_IOPOLL ) {
157
- if (unlikely (io_double_lock_ctx (target_ctx , issue_flags )))
157
+ if (unlikely (io_lock_external_ctx (target_ctx , issue_flags )))
158
158
return - EAGAIN ;
159
159
}
160
160
if (io_post_aux_cqe (target_ctx , msg -> user_data , msg -> len , flags ))
@@ -199,7 +199,7 @@ static int io_msg_install_complete(struct io_kiocb *req, unsigned int issue_flag
199
199
struct file * src_file = msg -> src_file ;
200
200
int ret ;
201
201
202
- if (unlikely (io_double_lock_ctx (target_ctx , issue_flags )))
202
+ if (unlikely (io_lock_external_ctx (target_ctx , issue_flags )))
203
203
return - EAGAIN ;
204
204
205
205
ret = __io_fixed_fd_install (target_ctx , src_file , msg -> dst_fd );
0 commit comments