File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,6 @@ struct io_wq {
109
109
110
110
struct io_wq_hash * hash ;
111
111
112
- refcount_t refs ;
113
-
114
112
atomic_t worker_refs ;
115
113
struct completion worker_done ;
116
114
@@ -949,7 +947,6 @@ struct io_wq *io_wq_create(unsigned bounded, struct io_wq_data *data)
949
947
}
950
948
951
949
wq -> task = get_task_struct (data -> task );
952
- refcount_set (& wq -> refs , 1 );
953
950
atomic_set (& wq -> worker_refs , 1 );
954
951
init_completion (& wq -> worker_done );
955
952
return wq ;
@@ -1038,8 +1035,7 @@ void io_wq_put_and_exit(struct io_wq *wq)
1038
1035
WARN_ON_ONCE (!test_bit (IO_WQ_BIT_EXIT , & wq -> state ));
1039
1036
1040
1037
io_wq_exit_workers (wq );
1041
- if (refcount_dec_and_test (& wq -> refs ))
1042
- io_wq_destroy (wq );
1038
+ io_wq_destroy (wq );
1043
1039
}
1044
1040
1045
1041
static bool io_wq_worker_affinity (struct io_worker * worker , void * data )
You can’t perform that action at this time.
0 commit comments