nvmet-tcp: fix incomplete data digest send
authorVarun Prakash <varun@chelsio.com>
Mon, 22 Nov 2021 10:08:41 +0000 (15:38 +0530)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2021 16:22:40 +0000 (17:22 +0100)
commit102110efdff6beedece6ab9b51664c32ac01e2db
tree01b6f2280001409b64020de299ec8c6c5baf106a
parentaf21250bb503a02e705b461886321e394b300524
nvmet-tcp: fix incomplete data digest send

Current nvmet_try_send_ddgst() code does not check whether
all data digest bytes are transmitted, fix this by returning
-EAGAIN if all data digest bytes are not transmitted.

Fixes: 872d26a391da ("nvmet-tcp: add NVMe over TCP target driver")
Signed-off-by: Varun Prakash <varun@chelsio.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c