File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -444,8 +444,6 @@ int io_files_update(struct io_kiocb *req, unsigned int issue_flags)
444
444
445
445
void io_free_rsrc_node (struct io_ring_ctx * ctx , struct io_rsrc_node * node )
446
446
{
447
- lockdep_assert_held (& ctx -> uring_lock );
448
-
449
447
if (node -> tag )
450
448
io_post_aux_cqe (ctx , node -> tag , 0 , 0 );
451
449
Original file line number Diff line number Diff line change 2
2
#ifndef IOU_RSRC_H
3
3
#define IOU_RSRC_H
4
4
5
+ #include <linux/lockdep.h>
6
+
5
7
#define IO_NODE_ALLOC_CACHE_MAX 32
6
8
7
9
#define IO_RSRC_TAG_TABLE_SHIFT (PAGE_SHIFT - 3)
@@ -80,6 +82,7 @@ static inline struct io_rsrc_node *io_rsrc_node_lookup(struct io_rsrc_data *data
80
82
81
83
static inline void io_put_rsrc_node (struct io_ring_ctx * ctx , struct io_rsrc_node * node )
82
84
{
85
+ lockdep_assert_held (& ctx -> uring_lock );
83
86
if (node && !-- node -> refs )
84
87
io_free_rsrc_node (ctx , node );
85
88
}
You can’t perform that action at this time.
0 commit comments