aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs
diff options
context:
space:
mode:
authorShengqi Chen <[email protected]>2024-09-07 22:07:14 +0800
committerBrian Behlendorf <[email protected]>2024-09-19 15:19:17 -0700
commita877b396245eb40d8ccc4d0be6f3260e30a46053 (patch)
treeb134be6cc4c0ed798354b6218dadf880640266f7 /module/os/linux/zfs
parent0ae4460c61e2dc16203029344b083423b21eb755 (diff)
cityhash: replace invocations with specialized versions when possible
So that we can get actual benefit from last commit. Reviewed by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Shengqi Chen <[email protected]> Closes #16131 Closes #16483
Diffstat (limited to 'module/os/linux/zfs')
-rw-r--r--module/os/linux/zfs/zvol_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/os/linux/zfs/zvol_os.c b/module/os/linux/zfs/zvol_os.c
index 303aafc95..2396690b4 100644
--- a/module/os/linux/zfs/zvol_os.c
+++ b/module/os/linux/zfs/zvol_os.c
@@ -551,8 +551,8 @@ zvol_request_impl(zvol_state_t *zv, struct bio *bio, struct request *rq,
blk_mq_hw_queue =
rq->q->queue_hw_ctx[rq->q->mq_map[rq->cpu]]->queue_num;
#endif
- taskq_hash = cityhash4((uintptr_t)zv, offset >> ZVOL_TASKQ_OFFSET_SHIFT,
- blk_mq_hw_queue, 0);
+ taskq_hash = cityhash3((uintptr_t)zv, offset >> ZVOL_TASKQ_OFFSET_SHIFT,
+ blk_mq_hw_queue);
tq_idx = taskq_hash % ztqs->tqs_cnt;
if (rw == WRITE) {