From: Sowmini Varadhan Date: Tue, 12 Aug 2014 14:33:10 +0000 (-0400) Subject: sunvnet: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN X-Git-Tag: omap-for-v3.17/fixes-against-rc2~59^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adddc32d6fde82156c779997f928865100542e55;p=pandora-kernel.git sunvnet: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN ldc_rx -> vnet_rx -> .. -> vnet_walk_rx->vnet_send_ack should not spin into an infinite loop waiting EAGAIN to lift. The sender could have sent us a burst, and gone to lunch without doing any more ldc_read()'s. That should not cause the receiver to loop infinitely till soft-lockup kicks in. Similarly __vnet_tx_trigger should only loop on EAGAIN a finite number of times. The caller (vnet_start_xmit()) already has code to reset the dring state and bail on errors from __vnet_tx_trigger Signed-off-by: Sowmini Varadhan Acked-by: Raghuram Kothakota Signed-off-by: David S. Miller --- Reading git-diff-tree failed