Commit 8732db67 authored by David Howells's avatar David Howells

rxrpc: Fix exclusive client connections

Exclusive connections are currently reusable (which they shouldn't be)
because rxrpc_alloc_client_connection() checks the exclusive flag in the
rxrpc_connection struct before it's initialised from the function
parameters.  This means that the DONT_REUSE flag doesn't get set.

Fix this by checking the function parameters for the exclusive flag.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 31fbe81f
...@@ -200,7 +200,7 @@ rxrpc_alloc_client_connection(struct rxrpc_conn_parameters *cp, gfp_t gfp) ...@@ -200,7 +200,7 @@ rxrpc_alloc_client_connection(struct rxrpc_conn_parameters *cp, gfp_t gfp)
} }
atomic_set(&conn->usage, 1); atomic_set(&conn->usage, 1);
if (conn->params.exclusive) if (cp->exclusive)
__set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags); __set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags);
conn->params = *cp; conn->params = *cp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment