File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ static inline void io_lockdep_assert_cq_locked(struct io_ring_ctx *ctx)
125
125
#if defined(CONFIG_PROVE_LOCKING )
126
126
lockdep_assert (in_task ());
127
127
128
+ if (ctx -> flags & IORING_SETUP_DEFER_TASKRUN )
129
+ lockdep_assert_held (& ctx -> uring_lock );
130
+
128
131
if (ctx -> flags & IORING_SETUP_IOPOLL ) {
129
132
lockdep_assert_held (& ctx -> uring_lock );
130
133
} else if (!ctx -> task_complete ) {
@@ -136,9 +139,7 @@ static inline void io_lockdep_assert_cq_locked(struct io_ring_ctx *ctx)
136
139
* Not from an SQE, as those cannot be submitted, but via
137
140
* updating tagged resources.
138
141
*/
139
- if (percpu_ref_is_dying (& ctx -> refs ))
140
- lockdep_assert (current_work ());
141
- else
142
+ if (!percpu_ref_is_dying (& ctx -> refs ))
142
143
lockdep_assert (current == ctx -> submitter_task );
143
144
}
144
145
#endif
You can’t perform that action at this time.
0 commit comments