]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: simplify __nvme_submit_cmd
authorChristoph Hellwig <hch@lst.de>
Sat, 26 May 2018 11:45:55 +0000 (13:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 May 2018 06:04:26 +0000 (08:04 +0200)
commit1d1fe7d70da9563381b703c3397ca94a13498ab0
treed5b484a72667e1bd4dfc8dcf651ddf4aed32ce03
parent4bfb474a4dd1736f9facfa2eb522ffaa271c592a
nvme-pci: simplify __nvme_submit_cmd

With recent CQ handling improvements we can now move the locking into
__nvme_submit_cmd.  Also remove the local tail variable to make the code
more obvious, remove the __ prefix in the name, and fix the comments
describing the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
drivers/nvme/host/pci.c