]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: don't try to use SGLs for metadata on the admin queue
authorChristoph Hellwig <hch@lst.de>
Sun, 11 May 2025 04:04:27 +0000 (06:04 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 15:19:48 +0000 (17:19 +0200)
commit2083f2d636d1a08fbd1fb088e151710028cf6e1a
treea848df60c2c262b526f4e76ecedc11f6ea51bfb4
parent559ae1ac2d8f63378878b1a639d47244fdbf8f81
nvme-pci: don't try to use SGLs for metadata on the admin queue

No admin command defined in an NVMe specification supports metadata,
but to protect against vendor specific commands using metadata ensure
that we don't try to use SGLs for metadata on the admin queue, as NVMe
does not support SGLs on the admin queue for the PCI transport.  Do
this by checking if the data transfer has been setup using SGLs as
that is required for using SGLs for metadata.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c