]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: don't try to add ns to p2p map unless it actually uses it
authorSagi Grimberg <sagi@grimberg.me>
Fri, 2 Nov 2018 23:12:21 +0000 (16:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Nov 2018 13:14:47 +0000 (06:14 -0700)
commit7f2495714bf86fee3ed80e4e25a9867020816c3e
treed915be94baffddd1487ed4be98dc480c0647c96f
parent1275c7112bb1045918abf406ed1cee4a4a524657
nvmet: don't try to add ns to p2p map unless it actually uses it

Even without CONFIG_P2PDMA this results in a error print:
nvmet: no peer-to-peer memory is available that's supported by rxe0 and /dev/nullb0

Fixes: e6f871c23df3 ("nvmet: Optionally use PCI P2P memory")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/core.c