]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-pci: add support for sgl metadata
authorKeith Busch <kbusch@kernel.org>
Fri, 15 Nov 2024 21:41:21 +0000 (13:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:01 +0000 (13:02 +0100)
commit595a5b23eb72f16c4adf0eb9a048af82b2fdec24
treea40f8c412f4a8b1302b389796f7e1d5ee539d617
parent5481dee296f60d94f7b5317158a336f8d722d000
nvme-pci: add support for sgl metadata

[ Upstream commit 979c6342f9c0a48696a6420f14f9dd409591657f ]

Supporting this mode allows creating and merging multi-segment metadata
requests that wouldn't be possible otherwise. It also allows directly
using user space requests that straddle physically discontiguous pages.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Stable-dep-of: 00817f0f1c45 ("nvme-ioctl: fix leaked requests on mapping error")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
include/linux/nvme.h