commit | 21d3bbdd4c342f16eac8d70893e45cdfa3381a1e | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Fri Nov 02 16:12:21 2018 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Nov 09 06:14:47 2018 -0700 |
tree | d915be94baffddd1487ed4be98dc480c0647c96f | |
parent | bb39ba6a8deab70752b836a36c62205b1c65b559 [diff] |
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: c6925093d0b2 ("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>