Re: [PATCH v2] nvme: fix miss command type check

From: Kanchan Joshi
Date: Mon May 29 2023 - 02:17:42 EST


On Fri, May 26, 2023 at 05:06:56PM +0000, min15.li wrote:
In the function nvme_passthru_end(),only the value of the command opcode is
checked, without checking the command type (IO command or Admin command).
When we send a Dataset Management command (The opcode of the Dataset
Management command is the same as the Set Feature command),kernel
thinks it is a set feature command, then sets the controller's keep
alive interval, and calls nvme_keep_alive_work().

Signed-off-by: min15.li <min15.li@xxxxxxxxxxx>

Reviewed-by: Kanchan Joshi <joshi.k@xxxxxxxxxxx>