Re: [PATCH v18 6/9] virtio-fs: honour isolcpus=managed_irq in queue mapping

From: Aaron Tomlin

Date: Mon Nov 30 2026 - 21:15:57 EST


On Mon, Nov 30, 2026 at 06:03:37PM -0500, Aaron Tomlin wrote:
> Since commit df28040c7f24 ("virtio_fs: store actual queue index in
> mq_map"), fs->mq_map is zero-initialised to 0 (VQ_HIPRIO, the
> forget-only virtqueue) while virtio_fs_map_queues() populates entries
> only for CPUs in get_vq_affinity(). When isolcpus=managed_irq restricts
> managed interrupt affinity to housekeeping CPUs, isolated CPUs remain at
> VQ_HIPRIO; requests submitted from them are treated as forget objects by
> virtio_fs_hiprio_done_work() and freed via kfree() without calling
> fuse_request_end(), corrupting slab state and hanging the caller.
>
> Cap fs->num_request_queues to the HK_TYPE_MANAGED_IRQ housekeeping CPU
> count when enabled (or num_possible_cpus() otherwise), use
> group_mask_cpus_evenly() in the software fallback path, and spread any
> unmapped possible CPUs across active request queues so every possible
> CPU maps to a valid VQ_REQUEST queue.
>
> Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
> Acked-by: Marco Crivellari <marco.crivellari@xxxxxxxx>
> Signed-off-by: Aaron Tomlin <atomlin@xxxxxxxxxxx>
> ---
> fs/fuse/virtio_fs.c | 99 ++++++++++++++++++++++++++++++++++-----------
> 1 file changed, 76 insertions(+), 23 deletions(-)

Hi German, Vivek, Stefan, Miklos,

Sashiko AI [1] suggested that the "Fixes:" tag should be applied for commit
df28040c7f24 ("virtio_fs: store actual queue index in mq_map").

If you feel the above and stable backport are appropriate, could these tags
be folded in when applying or would you prefer that I send a v19 with them
included?

[1]: https://lore.kernel.org/all/sashiko-outbox-242218@xxxxxxxxxx/

Kind regards,
--
Aaron Tomlin