linux-stable/drivers/nvme
Christoph Hellwig 8e228ac90c nvmet: don't defer passthrough commands with trivial effects to the workqueue
[ Upstream commit 2a459f6933 ]

Mask out the "Command Supported" and "Logical Block Content Change" bits
and only defer execution of commands that have non-trivial effects to
the workqueue for synchronous execution.  This allows to execute admin
commands asynchronously on controllers that provide a Command Supported
and Effects log page, and will keep allowing to execute Write commands
asynchronously once command effects on I/O commands are taken into
account.

Fixes: c1fef73f79 ("nvmet: add passthru code to process commands")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-12 11:58:43 +01:00
..
host nvme-pci: fix page size checks 2023-01-12 11:58:42 +01:00
target nvmet: don't defer passthrough commands with trivial effects to the workqueue 2023-01-12 11:58:43 +01:00
Kconfig
Makefile