nvmet-tcp: move send/recv error handling in the send/recv methods instead of call...
authorSagi Grimberg <sagi@grimberg.me>
Mon, 18 May 2020 17:47:48 +0000 (10:47 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:37 +0000 (07:12 +0200)
commit0236d3437909ff888e5c79228e2d5a851651c4c6
tree13398edb85d56faf14a7c3b8e56cfb1887daf800
parentf381ab1f26aa33f14412cb9b7cb7f947b88a55b2
nvmet-tcp: move send/recv error handling in the send/recv methods instead of call-sites

Have routines handle errors and just bail out of the poll loop.
This simplifies the code and will help as we may enhance the poll
loop logic and these are somewhat in the way.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c