File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,16 @@ static bool io_acct_cancel_pending_work(struct io_wq *wq,
150
150
static void create_worker_cb (struct callback_head * cb );
151
151
static void io_wq_cancel_tw_create (struct io_wq * wq );
152
152
153
+ static inline unsigned int __io_get_work_hash (unsigned int work_flags )
154
+ {
155
+ return work_flags >> IO_WQ_HASH_SHIFT ;
156
+ }
157
+
158
+ static inline unsigned int io_get_work_hash (struct io_wq_work * work )
159
+ {
160
+ return __io_get_work_hash (atomic_read (& work -> flags ));
161
+ }
162
+
153
163
static bool io_worker_get (struct io_worker * worker )
154
164
{
155
165
return refcount_inc_not_zero (& worker -> ref );
@@ -454,16 +464,6 @@ static void __io_worker_idle(struct io_wq_acct *acct, struct io_worker *worker)
454
464
}
455
465
}
456
466
457
- static inline unsigned int __io_get_work_hash (unsigned int work_flags )
458
- {
459
- return work_flags >> IO_WQ_HASH_SHIFT ;
460
- }
461
-
462
- static inline unsigned int io_get_work_hash (struct io_wq_work * work )
463
- {
464
- return __io_get_work_hash (atomic_read (& work -> flags ));
465
- }
466
-
467
467
static bool io_wait_on_hash (struct io_wq * wq , unsigned int hash )
468
468
{
469
469
bool ret = false;
You can’t perform that action at this time.
0 commit comments