min15.li b9c5f7da76 nvme: fix miss command type check
commit 31a5978243d24d77be4bacca56c78a0fbc43b00d upstream.

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@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Fixes: b58da2d270db ("nvme: update keep alive interval when kato is modified")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:19:43 +02:00
..
2023-09-19 12:22:47 +02:00
2023-11-20 11:08:27 +01:00
2024-04-10 16:18:40 +02:00
2024-04-10 16:19:36 +02:00
2024-04-10 16:18:46 +02:00
2023-11-20 11:08:22 +01:00
2024-04-10 16:19:43 +02:00
2024-02-23 08:54:38 +01:00
2024-04-10 16:19:35 +02:00
2024-01-25 14:52:31 -08:00
2024-03-26 18:21:36 -04:00