virtio_fs: add sysfs entries for queue information
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Sun, 25 Aug 2024 13:07:16 +0000 (16:07 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Sep 2024 11:07:43 +0000 (07:07 -0400)
commit87cbdc396a31ce29b0849705e565c81564d5ed4b
treee8e0c178a7ee6fe5e64afaf107d3680629dd7827
parent4045b6429874e07f14b5b41e326d4e6f866f8bbf
virtio_fs: add sysfs entries for queue information

Introduce sysfs entries to provide visibility to the multiple queues
used by the Virtio FS device. This enhancement allows users to query
information about these queues.

Specifically, add two sysfs entries:
1. Queue name: Provides the name of each queue (e.g. hiprio/requests.8).
2. CPU list: Shows the list of CPUs that can process requests for each
queue.

The CPU list feature is inspired by similar functionality in the block
MQ layer, which provides analogous sysfs entries for block devices.

These new sysfs entries will improve observability and aid in debugging
and performance tuning of Virtio FS devices.

Reviewed-by: Idan Zach <izach@nvidia.com>
Reviewed-by: Shai Malin <smalin@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Message-Id: <20240825130716.9506-2-mgurtovoy@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
fs/fuse/virtio_fs.c