summaryrefslogtreecommitdiff
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2025-07-03 14:47:38 +0800
committerMiklos Szeredi <mszeredi@redhat.com>2025-08-27 14:29:43 +0200
commit7dbe6442487743ad492d9143f1f404c1f4a05e0e (patch)
treefbc8c9268926d2c186d70e26442c03443a8851ae /fs/fuse/dev.c
parent2841808f35eebfd07150333f3af3007cb2904a09 (diff)
downloadlinux-7dbe6442487743ad492d9143f1f404c1f4a05e0e.tar.gz
linux-7dbe6442487743ad492d9143f1f404c1f4a05e0e.tar.bz2
linux-7dbe6442487743ad492d9143f1f404c1f4a05e0e.zip
virtio_fs: fix the hash table using in virtio_fs_enqueue_req()
The original commit be2ff42c5d6e ("fuse: Use hash table to link processing request") converted fuse_pqueue->processing to a hash table, but virtio_fs_enqueue_req() was not updated to use it correctly. So use fuse_pqueue->processing as a hash table, this make the code more coherent Co-developed-by: Fushuai Wang <wangfushuai@baidu.com> Signed-off-by: Fushuai Wang <wangfushuai@baidu.com> Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 3d8a3edebc23..f6259711ca1c 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -323,6 +323,7 @@ unsigned int fuse_req_hash(u64 unique)
{
return hash_long(unique & ~FUSE_INT_REQ_BIT, FUSE_PQ_HASH_BITS);
}
+EXPORT_SYMBOL_GPL(fuse_req_hash);
/*
* A new request is available, wake fiq->waitq