mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
tipc: eliminate connection setup for implied connect in recv_msg()
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>
This commit is contained in:
parent
584d24b396
commit
cbab368790
1 changed files with 0 additions and 7 deletions
|
@ -946,13 +946,6 @@ static int recv_msg(struct kiocb *iocb, struct socket *sock,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue