File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ static bool io_uring_try_cancel_requests(struct io_ring_ctx *ctx,
146
146
struct task_struct * task ,
147
147
bool cancel_all );
148
148
149
- static void io_dismantle_req (struct io_kiocb * req );
150
149
static void io_clean_op (struct io_kiocb * req );
151
150
static void io_queue_sqe (struct io_kiocb * req );
152
151
static void io_move_task_work_from_local (struct io_ring_ctx * ctx );
@@ -991,7 +990,11 @@ static void __io_req_complete_post(struct io_kiocb *req, unsigned issue_flags)
991
990
}
992
991
}
993
992
io_put_kbuf_comp (req );
994
- io_dismantle_req (req );
993
+ if (unlikely (req -> flags & IO_REQ_CLEAN_FLAGS ))
994
+ io_clean_op (req );
995
+ if (!(req -> flags & REQ_F_FIXED_FILE ))
996
+ io_put_file (req -> file );
997
+
995
998
rsrc_node = req -> rsrc_node ;
996
999
/*
997
1000
* Selected buffer deallocation in io_clean_op() assumes that
@@ -1111,16 +1114,6 @@ __cold bool __io_alloc_req_refill(struct io_ring_ctx *ctx)
1111
1114
return true;
1112
1115
}
1113
1116
1114
- static inline void io_dismantle_req (struct io_kiocb * req )
1115
- {
1116
- unsigned int flags = req -> flags ;
1117
-
1118
- if (unlikely (flags & IO_REQ_CLEAN_FLAGS ))
1119
- io_clean_op (req );
1120
- if (!(flags & REQ_F_FIXED_FILE ))
1121
- io_put_file (req -> file );
1122
- }
1123
-
1124
1117
__cold void io_free_req (struct io_kiocb * req )
1125
1118
{
1126
1119
/* refs were already put, restore them for io_req_task_complete() */
You can’t perform that action at this time.
0 commit comments