Skip to content
Commit 182fac26 authored by Jim Schutt's avatar Jim Schutt Committed by Alex Elder
Browse files

net/ceph: Only clear SOCK_NOSPACE when there is sufficient space in the socket buffer



The Ceph messenger would sometimes queue multiple work items to write
data to a socket when the socket buffer was full.

Fix this problem by making ceph_write_space() use SOCK_NOSPACE in the
same way that net/core/stream.c:sk_stream_write_space() does, i.e.,
clearing it only when sufficient space is available in the socket buffer.

Signed-off-by: default avatarJim Schutt <jaschut@sandia.gov>
Reviewed-by: default avatarAlex Elder <elder@dreamhost.com>
parent c16fa4f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment