]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use invalid cmd opcode helper
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 10 Feb 2021 05:47:58 +0000 (21:47 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 15:38:05 +0000 (16:38 +0100)
commitdf10f9e029cdd9213200abfc941c1d67d2af2796
treeed8ea692467d29e6647c6d5302ba2995e52a6577
parent65475657a3934b87921405a2b5dfc7e5a14c3e5d
nvmet: use invalid cmd opcode helper

In the NVMeOF block device backend, file backend, and passthru backend
we reject and report the commands if opcode is not handled.

Use the previously introduced helper in the passthru backend to make the
error message uniform.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/passthru.c