]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use req->cmd directly in bdev-ns fast path
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 14 Jun 2021 01:58:46 +0000 (18:58 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:20 +0000 (15:51 +0200)
commit1ef107ece9198d326dd5a745da75e247783ab006
tree5c7706dfa5dfe17cc4bb412bad6ac71697936286
parent91641a857a2b65e6ab970f844820b5c52e4e3a0d
nvmet: use req->cmd directly in bdev-ns fast path

The function nvmet_bdev_parse_io_cmd() is called from the fast path.
The local variable to that function cmd is only used once.

Remove the local variable and use req->cmd directly.

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