diff options
author | Steve Wise <swise@opengridcomputing.com> | 2016-10-26 12:36:48 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-14 11:38:28 -0500 |
commit | 512fb1b32bac02ebec50e5060f94dc1ad23ed28f (patch) | |
tree | acf7830e8fd6eee6a2beae98762ab31eecd70aec /drivers/nvme | |
parent | 1e38a366ee86ac2b7a8110775cb3353649b18b70 (diff) | |
download | linux-512fb1b32bac02ebec50e5060f94dc1ad23ed28f.tar.gz linux-512fb1b32bac02ebec50e5060f94dc1ad23ed28f.tar.bz2 linux-512fb1b32bac02ebec50e5060f94dc1ad23ed28f.zip |
nvmet_rdma: log the connection reject message
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/rdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c index f8d23999e0f2..50f237a46ea1 100644 --- a/drivers/nvme/target/rdma.c +++ b/drivers/nvme/target/rdma.c @@ -1358,6 +1358,9 @@ static int nvmet_rdma_cm_handler(struct rdma_cm_id *cm_id, ret = nvmet_rdma_device_removal(cm_id, queue); break; case RDMA_CM_EVENT_REJECTED: + pr_debug("Connection rejected: %s\n", + rdma_reject_msg(cm_id, event->status)); + /* FALLTHROUGH */ case RDMA_CM_EVENT_UNREACHABLE: case RDMA_CM_EVENT_CONNECT_ERROR: nvmet_rdma_queue_connect_fail(cm_id, queue); |