diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-07 16:01:24 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-11-15 12:50:22 +0300 |
commit | fa8f9ac42350edd3ce82d0d148a60f0fa088f995 (patch) | |
tree | 0b8f20e12c5869277e8aaca3c82931ad72b088bc /drivers/nvme/target/nvmet.h | |
parent | 2be2cd5287152a6284b45244b6e5c2f7e0a218bd (diff) | |
download | linux-fa8f9ac42350edd3ce82d0d148a60f0fa088f995.tar.xz |
nvmet: only allocate a single slab for bvecs
There is no need to have a separate slab cache for each namespace,
and having separate ones creates duplicate debugs file names as well.
Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r-- | drivers/nvme/target/nvmet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index dfe3894205aa..bda1c1f71f39 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -77,7 +77,6 @@ struct nvmet_ns { struct completion disable_done; mempool_t *bvec_pool; - struct kmem_cache *bvec_cache; int use_p2pmem; struct pci_dev *p2p_dev; @@ -393,6 +392,8 @@ struct nvmet_req { u64 error_slba; }; +#define NVMET_MAX_MPOOL_BVEC 16 +extern struct kmem_cache *nvmet_bvec_cache; extern struct workqueue_struct *buffered_io_wq; extern struct workqueue_struct *zbd_wq; extern struct workqueue_struct *nvmet_wq; |