]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: add get_max_queue_size op for controllers
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Wed, 22 Sep 2021 21:55:36 +0000 (00:55 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:16:01 +0000 (19:16 +0200)
commit6746be87bac43bc69d0ec755cee2b5b9fca7f935
tree4c7c2848a45e7e96afc1b85b36181c5d7d55c6de
parent80b0ba8ddde511aadd54eee5b7757dd4d3b4131c
nvmet: add get_max_queue_size op for controllers

Some transports, such as RDMA, would like to set the queue size
according to device/port/ctrl characteristics. Add a new nvmet transport
op that is called during ctrl initialization. This will not effect
transports that don't implement this option.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h