Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 3 of 3) sorted by relevance

/io_uring/
Dio-wq.c116 struct io_wq_hash *hash; member
449 static bool io_wait_on_hash(struct io_wqe *wqe, unsigned int hash) in io_wait_on_hash() argument
454 spin_lock_irq(&wq->hash->wait.lock); in io_wait_on_hash()
456 __add_wait_queue(&wq->hash->wait, &wqe->wait); in io_wait_on_hash()
457 if (!test_bit(hash, &wq->hash->map)) { in io_wait_on_hash()
463 spin_unlock_irq(&wq->hash->wait.lock); in io_wait_on_hash()
477 unsigned int hash; in io_get_next_work() local
487 hash = io_get_work_hash(work); in io_get_next_work()
489 tail = wqe->hash_tail[hash]; in io_get_next_work()
492 if (!test_and_set_bit(hash, &wqe->wq->hash->map)) { in io_get_next_work()
[all …]
Dio-wq.h121 static inline void io_wq_put_hash(struct io_wq_hash *hash) in io_wq_put_hash() argument
123 if (refcount_dec_and_test(&hash->refs)) in io_wq_put_hash()
124 kfree(hash); in io_wq_put_hash()
128 struct io_wq_hash *hash; member
Dio_uring.c8649 struct io_wq_hash *hash; in io_init_wq_offload() local
8654 hash = ctx->hash_map; in io_init_wq_offload()
8655 if (!hash) { in io_init_wq_offload()
8656 hash = kzalloc(sizeof(*hash), GFP_KERNEL); in io_init_wq_offload()
8657 if (!hash) { in io_init_wq_offload()
8661 refcount_set(&hash->refs, 1); in io_init_wq_offload()
8662 init_waitqueue_head(&hash->wait); in io_init_wq_offload()
8663 ctx->hash_map = hash; in io_init_wq_offload()
8667 data.hash = hash; in io_init_wq_offload()