nvme-tcp: support separate queue maps for read and write
authorSagi Grimberg <sagi@grimberg.me>
Wed, 12 Dec 2018 07:38:57 +0000 (23:38 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:59:09 +0000 (09:59 +0100)
commit873946f4b957bf6e6a0351dd5282c73e0c870be9
tree36fbf42c38a9dad867be1e8c8afacee5be6aba8f
parent330f6b8a70771f0b059b7bcbc9a28d8023235b55
nvme-tcp: support separate queue maps for read and write

Allow NVMF_OPT_NR_WRITE_QUEUES to describe additional write queues.  In
addition, implement .map_queues that will apply 2 queue maps for read
and write queue sets.

Note that with the separate queue map, HCTX_TYPE_READ will always use
nr_io_queues and HCTX_TYPE_DEFAULT will use nr_write_queues.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c