[CRIU] [crtools-bot] sockets: Allow to dump unix sockets with inflight connections

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 27 14:23:48 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 641844c3496b9733e5389f0b4f7cbf71a906ef8c
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Thu Jan 26 13:29:53 2012 +0400

    sockets: Allow to dump unix sockets with inflight connections
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 sockets.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/sockets.c b/sockets.c
index 738ba5a..6c65bf2 100644
--- a/sockets.c
+++ b/sockets.c
@@ -217,26 +217,8 @@ static int can_dump_unix_sk(struct unix_sk_desc *sk)
 
 	switch (sk->state) {
 	case TCP_LISTEN:
-		if (sk->rqlen != 0) {
-			/*
-			 * Currently the ICONS nla reports the conn
-			 * requests for listen sockets. Need to pick
-			 * those up and fix the connect job respectively
-			 */
-			pr_err("In-flight connection (l)\n");
-			return 0;
-		}
-
 		break;
 	case TCP_ESTABLISHED:
-		if (!sk->peer_ino) {
-			/*
-			 * Read above
-			 */
-			pr_err("In-flight connection\n");
-			return 0;
-		}
-
 		if (sk->rqlen) {
 			/*
 			 * The hard case :( Currentl there's no way to


More information about the CRIU mailing list