]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: call_connect_status should recheck bind and connect status on error
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 26 Sep 2013 19:22:45 +0000 (15:22 -0400)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 14:07:42 +0000 (15:07 +0100)
commit5a88b3915463423b14e19d50e96f35fa2a6f96d1
tree8481f9b4f2af474559bdab4ea5455e04f26792d5
parente204d37abbe3f0de038c750ba75c39250a061cb2
SUNRPC: call_connect_status should recheck bind and connect status on error

commit 561ec1603171cd9b38dcf6cac53e8710f437a48d upstream.

Currently, we go directly to call_transmit which sends us to call_status
on error. If we know that the connect attempt failed, we should rather
just jump straight back to call_bind and call_connect.

Ditto for EAGAIN, except do not delay.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/sunrpc/clnt.c