linux/net/rds
jeff.liu 445b290bd3 RDS: fix rds-ping spinlock recursion
[ Upstream commit 5175a5e76b ]

This is the revised patch for fixing rds-ping spinlock recursion
according to Venkat's suggestions.

RDS ping/pong over TCP feature has been broken for years(2.6.39 to
3.6.0) since we have to set TCP cork and call kernel_sendmsg() between
ping/pong which both need to lock "struct sock *sk". However, this
lock has already been hold before rds_tcp_data_ready() callback is
triggerred. As a result, we always facing spinlock resursion which
would resulting in system panic.

Given that RDS ping is only used to test the connectivity and not for
serious performance measurements, we can queue the pong transmit to
rds_wq as a delayed response.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
CC: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
CC: David S. Miller <davem@davemloft.net>
CC: James Morris <james.l.morris@oracle.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-28 10:02:13 -07:00
..
af_rds.c rds: Make rds_sock_lock BH rather than IRQ safe. 2012-02-03 09:19:04 -08:00
bind.c
cong.c rds: use little-endian bitops 2011-03-23 19:46:16 -07:00
connection.c rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
ib_cm.c RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
ib_rdma.c rds/ib: use system_wq instead of rds_ib_fmr_wq 2011-02-01 11:42:43 +01:00
ib_recv.c
ib_ring.c
ib_send.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ib_stats.c
ib_sysctl.c rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
ib.c RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
ib.h rds/ib: use system_wq instead of rds_ib_fmr_wq 2011-02-01 11:42:43 +01:00
info.c
info.h
iw_cm.c RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
iw_rdma.c Fix common misspellings 2011-03-31 11:26:23 -03:00
iw_recv.c
iw_ring.c
iw_send.c Fix common misspellings 2011-03-31 11:26:23 -03:00
iw_stats.c
iw_sysctl.c rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
iw.c RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
iw.h rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
Kconfig
loop.c rds: prevent BUG_ON triggering on congestion map updates 2011-03-08 11:22:43 -08:00
loop.h
Makefile Net: rds: Makefile: Remove deprecated items 2010-11-22 08:16:15 -08:00
message.c rds: Fix rds message leak in rds_message_map_pages 2010-11-08 12:17:09 -08:00
page.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-10-21 08:43:05 -07:00
rdma_transport.c RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
rdma_transport.h rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
rdma.c rds: Integer overflow in RDS cmsg handling 2010-11-17 12:20:52 -08:00
rds.h net: cleanup unused macros in net directory 2011-01-19 23:20:04 -08:00
recv.c rds: set correct msg_namelen 2012-10-02 09:47:41 -07:00
send.c RDS: fix rds-ping spinlock recursion 2012-10-28 10:02:13 -07:00
stats.c
sysctl.c
tcp_connect.c
tcp_listen.c
tcp_recv.c rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
tcp_send.c rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
tcp_stats.c
tcp.c rds: Remove kfreed tcp conn from list 2010-11-03 18:50:07 -07:00
tcp.h rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
threads.c
transport.c
xlist.h