Patch "nvme: send Identify with CNS 06h only to I/O controllers" has been added to the 6.1-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: send Identify with CNS 06h only to I/O controllers

to the 6.1-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-send-identify-with-cns-06h-only-to-i-o-controll.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 9ffe85d7fd9bcd4b921114a08e1a38d2783bdf3a
Author: Martin George <martinus.gpy@xxxxxxxxx>
Date:   Thu Mar 16 17:20:09 2023 +0530

    nvme: send Identify with CNS 06h only to I/O controllers
    
    [ Upstream commit def84ab600b71ea3fcc422a876d5d0d0daa7d4f3 ]
    
    Identify CNS 06h (I/O Command Set Specific Identify Controller data
    structure) is supported only on i/o controllers.
    
    But nvme_init_non_mdts_limits() currently invokes this on all
    controllers.  Correct this by ensuring this is sent to I/O
    controllers only.
    
    Signed-off-by: Martin George <marting@xxxxxxxxxx>
    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index cb71ce3413c2d..c54c6ffba0bcd 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3074,7 +3074,8 @@ static int nvme_init_non_mdts_limits(struct nvme_ctrl *ctrl)
 	else
 		ctrl->max_zeroes_sectors = 0;
 
-	if (nvme_ctrl_limited_cns(ctrl))
+	if (ctrl->subsys->subtype != NVME_NQN_NVME ||
+	    nvme_ctrl_limited_cns(ctrl))
 		return 0;
 
 	id = kzalloc(sizeof(*id), GFP_KERNEL);



[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