]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: allow user toggling hmb usage
authorKeith Busch <kbusch@kernel.org>
Tue, 27 Jul 2021 16:40:43 +0000 (09:40 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:24 +0000 (14:42 +0200)
commitaa858dd683e670e175f3d5ae92c39b334c1f8639
tree8769761917dc7120f3b51f33dc8cb14c7a100132
parent3025e283699c7efdbb745403a6273367a4c84b35
nvme: allow user toggling hmb usage

The NVMe host memory buffer may consume a non-negligable amount of
memory. Controllers are required to function without the host memory
buffer enabled, but with possibly degraded performance. Export a sysfs
property to toggle this feature on a per-device granularity so users may
choose to reclaim memory at the expense of storage performance.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c