]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35f01725dbe77e5592b6721632653d0002d26231
tree13398edb85d56faf14a7c3b8e56cfb1887daf800
parent10d423719617e136d3658224f2561bf29fed046a
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