nvme: repack struct nvme_ns_head
authorDaniel Wagner <dwagner@suse.de>
Mon, 18 Dec 2023 16:59:54 +0000 (17:59 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 19 Dec 2023 17:10:13 +0000 (09:10 -0800)
commit963929615194d163a25e3b536cd990a05d7e9439
tree97b72d232cfed6fe1cf47b239257a869d3f20a4c
parenta1a825ab6a60380240ca136596732fdb80bad87a
nvme: repack struct nvme_ns_head

ns_id, lba_shift and ms are always accessed for every read/write I/O in
nvme_setup_rw. By grouping these variables into one cacheline we can
safe some cycles.

4k sequential reads:

           baseline   patched
Bandwidth: 1620       1634
IOPs       66345579   66910939

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/nvme.h