Patch "nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nvme-only-set-reserved_tags-in-nvme_alloc_io_tag_set.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ba17729ae9aaa82d2cb0f6230d60c8dfe957cdad
Author: Christoph Hellwig <hch@xxxxxx>
Date:   Wed Nov 30 17:27:07 2022 +0100

    nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers
    
    [ Upstream commit b794d1c2ad6d7921f2867ce393815ad31b5b5a83 ]
    
    The reserved_tags are only needed for fabrics controllers.  Right now only
    fabrics drivers call this helper, so this is harmless, but we'll use it
    in the PCIe driver soon.
    
    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Reviewed-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
    Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
    Stable-dep-of: de105068fead ("nvme: fix reconnection fail due to reserved tag allocation")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index d9c7d1cf6bd2a..a65b35d20c7fb 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4527,7 +4527,8 @@ int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
 	memset(set, 0, sizeof(*set));
 	set->ops = ops;
 	set->queue_depth = ctrl->sqsize + 1;
-	set->reserved_tags = NVMF_RESERVED_TAGS;
+	if (ctrl->ops->flags & NVME_F_FABRICS)
+		set->reserved_tags = NVMF_RESERVED_TAGS;
 	set->numa_node = ctrl->numa_node;
 	set->flags = flags;
 	set->cmd_size = cmd_size,




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux