Did you not solve this problem using right write_space?
I remember we have already discussed this and to all that I remember
come to happy end. :-)
> Would such a patch be acceptable,
No, of course. :-)
> or is there a better way of doing this?
Better way exists. Just use forced sock_wmalloc instead of
sock_alloc_send_skb on non-blocking send of all the fragments
but the first.
But I still hope you will start with tuning your write_space
to send only when ~2*msg_size of space is available.
Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/