Skip to content

Commit 5e48b0f

Browse files
committed
fabrics: Remove double connection error logging
nvmf_connect_disc_entry() is calling nvmf_add_ctrl() to do the connecting attempt. We have in nvmf_add_ctrl() all error paths logging enabled, so another logging in nvmf_connect_disc_entry() is not necessary and introduces a problem such as nmve-cli users interpreting this as hard error. For example the kernel reports via < 0 return values state information such as the connection is already there if the user runs 'nvme connect-all' twice: $ .build/nvme connect-all -t tcp --traddr=10.161.8.24 --trsvcid=4421 Failed to write to /dev/nvme-fabrics: Operation already in progress failed to connect controller, error 1006 Let's remove this error message. Signed-off-by: Daniel Wagner <[email protected]>
1 parent a8e74b3 commit 5e48b0f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/nvme/fabrics.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,6 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h,
702702
if (!ret)
703703
return c;
704704
}
705-
nvme_msg(h->r, LOG_ERR, "failed to connect controller, error %d\n",
706-
errno);
707705
nvme_free_ctrl(c);
708706
return NULL;
709707
}

0 commit comments

Comments
 (0)