diff options
author | Hannes Reinecke <hare@kernel.org> | 2025-05-28 08:45:34 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2025-06-04 10:02:23 +0200 |
commit | f42d4796ee100fade86086d1cf98537fb4d326c8 (patch) | |
tree | 833201a31a9c2cc485107d4eeec935d4117bfd37 /net/lapb/lapb_timer.c | |
parent | 0bf04c874fcb1ae46a863034296e4b33d8fbd66c (diff) |
nvme-tcp: fix I/O stalls on congested sockets
When the socket is busy processing nvme_tcp_try_recv() might return
-EAGAIN, but this doesn't automatically imply that the sending side is
blocked, too. So check if there are pending requests once
nvme_tcp_try_recv() returns -EAGAIN and continue with the sending loop
to avoid I/O stalls.
Signed-off-by: Hannes Reinecke <hare@kernel.org>
Acked-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions