]> Pileus Git - ~andy/linux/commitdiff
tipc: eliminate connection setup for implied connect in recv_msg()
authorYing Xue <ying.xue@windriver.com>
Thu, 29 Nov 2012 08:28:30 +0000 (16:28 +0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 7 Dec 2012 22:23:22 +0000 (17:23 -0500)
As connection setup is now completed asynchronously in BH context,
in the function filter_connect(), the corresponding code in recv_msg()
becomes redundant.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c

index dbce2745f0a8ab52bbc037eba771054778287096..ef75b6270247b4ecfeddace3b9ba993e718df30b 100644 (file)
@@ -946,13 +946,6 @@ restart:
        sz = msg_data_sz(msg);
        err = msg_errcode(msg);
 
-       /* Complete connection setup for an implied connect */
-       if (unlikely(sock->state == SS_CONNECTING)) {
-               res = auto_connect(sock, msg);
-               if (res)
-                       goto exit;
-       }
-
        /* Discard an empty non-errored message & try again */
        if ((!sz) && (!err)) {
                advance_rx_queue(sk);