]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: introduce NVME_INLINE_METADATA_SG_CNT
authorIsrael Rukshin <israelr@mellanox.com>
Tue, 19 May 2020 14:05:54 +0000 (17:05 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:39 +0000 (07:12 +0200)
commit2c9761bc1fe651a9a8a74e270d07607c0c845c22
tree20ee80eb43ebdff6d6b5dbdd620fc8a5598a003b
parent2d87d89380e36b62157021be9e5e7fb4324bc261
nvme: introduce NVME_INLINE_METADATA_SG_CNT

SGL size of metadata is usually small. Thus, 1 inline sg should cover
most cases. The macro will be used for pre-allocate a single SGL entry
for metadata. The preallocation of small inline SGLs depends on SG_CHAIN
capability so if the ARCH doesn't support SG_CHAIN, use the runtime
allocation for the SGL. This patch is a preparation for adding metadata
(T10-PI) over fabric support.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h