Skip to content

RFC dlm: fix socket hang on send buffer limitation with socket error

Alexander Aring gfs2 netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dlm: drop setting SOCK_NOSPACEfs/dlm/lowcomms.c+0 -40 replies
2/2dlm: fix socket hang on send buffer limitation with socket errorfs/dlm/lowcomms.c+36 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] dlm: fix socket hang on send buffer limitation with socket error

Hi,

This patch series is based on Eric Dumazet's series [0] cleaning up and fixing kernel users of SOCK_NOSPACE handling. His series pointed out that DLM socket handling can get stuck when the socket send buffer limit is reached and a socket error occurs simultaneously.

This patch series provides a fix for this behavior. I was able to reproduce the scenario and trigger the hang locally. With these patches applied on top of Eric's series, I can no longer reproduce the issue.

Please feel free to review and take these patches if they look reasonable.

- Alex

[0] https://lore.kernel.org/netdev/[email protected]/

Alexander Aring (2):
dlm: drop setting SOCK_NOSPACE
dlm: fix socket hang on send buffer limitation with socket error

 fs/dlm/lowcomms.c | 50 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 36 insertions(+), 14 deletions(-)
Signature · 1 line
2.43.0