Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1236484
| From | Sowmini Varadhan <sowmini.varadhan@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. |
| Date | 2015-09-30 18:10 +0200 |
| Message-ID | <qes77-1uV-9@gated-at.bofh.it> (permalink) |
| References | <qepVD-6Bs-3@gated-at.bofh.it> <qepVD-6Bs-1@gated-at.bofh.it> <qerXt-14n-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On (09/30/15 08:50), santosh shilimkar wrote:
> > rs_tcp = (struct rds_tcp_connection *)conn->c_transport_data;
> >- WARN_ON(!rs_tcp || rs_tcp->t_sock);
> >+ if (rs_tcp->t_sock && inet->inet_saddr < inet->inet_daddr) {
> >+ struct sock *nsk = new_sock->sk;
> >
> Any reason you dropped the WARN_ON. Note that till we got commit
> 74e98eb0 (" RDS: verify the underlying transport exists before creating
> a connection") merged, we had an issue. That guards it now.
That was done deliberately. Now that we have only one tcp socket,
we can run into an rds_tcp_connection for an outgoing connection
that we initiated, thus rs_tcp->t_sock can be non-null - which is
why a new check is added in the newly added line in the patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. Sowmini Varadhan <sowmini.varadhan@oracle.com> - 2015-09-30 15:50 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. kbuild test robot <lkp@intel.com> - 2015-09-30 16:50 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. Sowmini Varadhan <sowmini.varadhan@oracle.com> - 2015-09-30 18:00 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. santosh shilimkar <santosh.shilimkar@oracle.com> - 2015-09-30 18:10 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. santosh shilimkar <santosh.shilimkar@oracle.com> - 2015-09-30 18:00 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. Sowmini Varadhan <sowmini.varadhan@oracle.com> - 2015-09-30 18:10 +0200
Re: [PATCH net-next 1/3] net/rds: Use a single TCP socket for both send and receive. santosh shilimkar <santosh.shilimkar@oracle.com> - 2015-09-30 18:20 +0200
csiph-web