]> 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>
Sun, 11 May 2025 04:09:38 +0000 (06:09 +0200)
commite00f4e8a32fe1354de76a773cf1b3d2a78accabe
tree8edd22142d674f405243a65b4ad61e6180daa63c
parenteafa9130cc65cdd9b94a859471bacaf5c4eab838
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