+ ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch added to -mm tree
Subject: + ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 19 Nov 2013 15:30:09 -0800
The patch titled
Subject: ocfs2/o2net: incorrect to terminate accepting connections loop upon rejecting an invalid one
has been added to the -mm tree. Its filename is
ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Tariq Saeed <[email protected]>
Subject: ocfs2/o2net: incorrect to terminate accepting connections loop upon rejecting an invalid one
When o2net-accept-one() rejects an illegal connection, it terminates the loop picking up the remaining queued connections. This fix will continue accepting connections till the queue is emtpy.
Addresses Orabug 17489469.
---
fs/ocfs2/cluster/tcp.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
fs/ocfs2/cluster/tcp.c renamed from fs/ocfs2/cluster/tcp.c~ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one +11 -2
@@ -1826,7 +1826,7 @@ int o2net_register_hb_callbacks(void)/* ------------------------------------------------------------ */ -static int o2net_accept_one (struct socket *sock) +static int o2net_accept_one (struct socket *sock,int *more) {int ret, slen;struct sockaddr_in sin;
@@ -1837,6 +1837,7 @@ static int o2net_accept_one(struct sockestruct o2net_node *nn;BUG_ON (sock ==NULL ); + *more =0 ; ret =sock_create_lite (sock->sk->sk_family, sock->sk->sk_type, sock->sk->sk_protocol, &new_sock);if (ret)
@@ -1848,6 +1849,7 @@ static int o2net_accept_one(struct sockeif (ret <0 ) goto out; + *more =1 ; new_sock->sk->sk_allocation =GFP_ATOMIC ; ret =o2net_set_nodelay (new_sock);
@@ -1949,8 +1951,15 @@ out:static void o2net_accept_many (struct work_struct *work) {struct socket *sock = o2net_listen_sock; -while (o2net_accept_one (sock) ==0 ) +int more; +int err; + +for (;;) { + err =o2net_accept_one (sock, &more); +if (!more) +break ;cond_resched (); + } }static void o2net_listen_data_ready (struct sock *sk,int bytes)
_
Patches currently in -mm which might be from [email protected] are
origin.patch ocfs2-o2net-incorrect-to-terminate-accepting-connections-loop-upon-rejecting-an-invalid-one.patch