Searched refs:hash_bits (Results 1 – 1 of 1) sorted by relevance
1310 int hash_bits; in io_ring_ctx_alloc() local1320 hash_bits = ilog2(p->cq_entries); in io_ring_ctx_alloc()1321 hash_bits -= 5; in io_ring_ctx_alloc()1322 if (hash_bits <= 0) in io_ring_ctx_alloc()1323 hash_bits = 1; in io_ring_ctx_alloc()1324 ctx->cancel_hash_bits = hash_bits; in io_ring_ctx_alloc()1325 ctx->cancel_hash = kmalloc((1U << hash_bits) * sizeof(struct hlist_head), in io_ring_ctx_alloc()1329 __hash_init(ctx->cancel_hash, 1U << hash_bits); in io_ring_ctx_alloc()