From: Jim Schutt Date: Wed, 29 Feb 2012 15:30:58 +0000 (-0700) Subject: net/ceph: Only clear SOCK_NOSPACE when there is sufficient space in the socket buffer X-Git-Tag: v3.4-rc1~76^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182fac2689b769a96e7fc9defcd560c5cca92b1e;p=pandora-kernel.git 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: Jim Schutt Reviewed-by: Alex Elder --- Reading git-diff-tree failed