]> 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)
commita1618ca2a08e55a75659ba3fbbc9935c94a05ae7
tree5c7706dfa5dfe17cc4bb412bad6ac71697936286
parent7b82a9b024808b6f5d36944fd25f9cc8fb54f251
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