nvmf/tcp: print more details when sock_writev fails
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I2e9f1d0819bff43156e0847149d91cbfa79eb1cd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15641 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
parent
61692e8150
commit
3bc7e8f091
@ -964,7 +964,9 @@ _tcp_write_pdu(struct nvme_tcp_pdu *pdu)
|
|||||||
if (rc == mapped_length) {
|
if (rc == mapped_length) {
|
||||||
_pdu_write_done(pdu, 0);
|
_pdu_write_done(pdu, 0);
|
||||||
} else {
|
} else {
|
||||||
SPDK_ERRLOG("IC_RESP or TERM_REQ could not write to socket.\n");
|
SPDK_ERRLOG("Could not write %s to socket: rc=%zd, errno=%d\n",
|
||||||
|
pdu->hdr.common.pdu_type == SPDK_NVME_TCP_PDU_TYPE_IC_RESP ?
|
||||||
|
"IC_RESP" : "TERM_REQ", rc, errno);
|
||||||
_pdu_write_done(pdu, -1);
|
_pdu_write_done(pdu, -1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user