From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.busch@linux.intel.com (Keith Busch) Date: Fri, 18 May 2018 14:49:47 -0600 Subject: [PATCH 2/7] nvme-pci: simplify nvme_cqe_valid In-Reply-To: <1526655155-4006-3-git-send-email-axboe@kernel.dk> References: <1526655155-4006-1-git-send-email-axboe@kernel.dk> <1526655155-4006-3-git-send-email-axboe@kernel.dk> Message-ID: <20180518204947.GC27795@localhost.localdomain> On Fri, May 18, 2018@08:52:30AM -0600, Jens Axboe wrote: > +static inline bool nvme_cqe_pending(struct nvme_queue *nvmeq) > { > - return (le16_to_cpu(nvmeq->cqes[head].status) & 1) == phase; > + return (le16_to_cpu(nvmeq->cqes[nvmeq->cq_head].status) & 1) == > + nvmeq->cq_phase; > } What happened to the byte-swap micro-optimization?