From: Trond Myklebust Date: Wed, 11 Mar 2009 18:37:57 +0000 (-0400) Subject: SUNRPC: Avoid an unnecessary task reschedule on ENOTCONN X-Git-Tag: v2.6.27.29~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33a03f71c22bde120f8915bf0125ef6f40a55b46;p=pandora-kernel.git SUNRPC: Avoid an unnecessary task reschedule on ENOTCONN commit 15f081ca8ddfe150fb639c591b18944a539da0fc upstream. If the socket is unconnected, and xprt_transmit() returns ENOTCONN, we currently give up the lock on the transport channel. Doing so means that the lock automatically gets assigned to the next task in the xprt->sending queue, and so that task needs to be woken up to do the actual connect. The following patch aims to avoid that unnecessary task switch. Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed