nvme-pci: remove volatile cqes
authorKeith Busch <kbusch@kernel.org>
Tue, 28 Apr 2020 14:21:56 +0000 (07:21 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:36 +0000 (16:18 -0600)
commit74943d45eef4db64b1e5c9f7ad1d018576e113c5
tree1a0d4c8bc6d51ede2b4d4c66f6198b847bc537de
parentb04df85d9a05d7ee4b3f93c1a22312b41a949ec1
nvme-pci: remove volatile cqes

The completion queue entry is not volatile once the phase is confirmed.
Remove the volatile keywords and check the phase using the appropriate
READ_ONCE() accessor, allowing the compiler to optimize the remaining
completion path.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c