From 6eb419f1ca68f536a700e63c1521e428560a0d9d Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Fri, 3 Apr 2009 06:30:54 -0700 Subject: server-protocol - reimplement connection cleanup to happen in 2 phases - first phase, which happens when POLLERR is received on transport, releases all locks, flushes all open fds. - second phase, which happens when both the transports of connection destroyed, destroys the containers like lock table, fd table along with the connection. - the first phase, clears up any references to transport held by translators like posix-locks(in the form of blocked locks) paving way for the second phase. Signed-off-by: Anand V. Avati --- xlators/protocol/server/src/server-protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/protocol/server/src/server-protocol.h') diff --git a/xlators/protocol/server/src/server-protocol.h b/xlators/protocol/server/src/server-protocol.h index f00b584fb25..2e6923fb4e2 100644 --- a/xlators/protocol/server/src/server-protocol.h +++ b/xlators/protocol/server/src/server-protocol.h @@ -82,6 +82,9 @@ server_connection_put (xlator_t *this, server_connection_t *conn); int server_connection_destroy (xlator_t *this, server_connection_t *conn); +int +server_connection_cleanup (xlator_t *this, server_connection_t *conn); + int server_nop_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno); -- cgit