linux-sg2042/include/linux/sunrpc
Tom Tucker 24b8b44780 svcrdma: Fix race between svc_rdma_recvfrom thread and the dto_tasklet
RDMA_READ completions are kept on a separate queue from the general
I/O request queue. Since a separate lock is used to protect the RDMA_READ
completion queue, a race exists between the dto_tasklet and the
svc_rdma_recvfrom thread where the dto_tasklet sets the XPT_DATA
bit and adds I/O to the read-completion queue. Concurrently, the
recvfrom thread checks the generic queue, finds it empty and resets
the XPT_DATA bit. A subsequent svc_xprt_enqueue will fail to enqueue
the transport for I/O and cause the transport to "stall".

The fix is to protect both lists with the same lock and set the XPT_DATA
bit with this lock held.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-08-13 16:57:31 -04:00
..
Kbuild
auth.h NFSv4: Reintroduce machine creds 2008-04-19 16:54:56 -04:00
auth_gss.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
cache.h svcrpc: move unused field from cache_deferred_req 2008-04-23 16:13:37 -04:00
clnt.h SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon 2008-07-15 18:08:55 -04:00
debug.h svc: Make svc_sock the tcp/udp transport 2008-02-01 16:42:07 -05:00
gss_api.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
gss_asn1.h
gss_err.h
gss_krb5.h gss_krb5: create a define for token header size and clean up ptr location 2008-06-23 13:47:25 -04:00
gss_spkm3.h
metrics.h
msg_prot.h SUNRPC: Move universal address definitions to global header 2008-01-30 02:05:50 -05:00
rpc_pipe_fs.h
rpc_rdma.h
sched.h rpc: minor cleanup of scheduler callback code 2008-07-09 12:09:14 -04:00
stats.h
svc.h sunrpc: remove sv_kill_signal field from svc_serv struct 2008-06-23 13:02:49 -04:00
svc_rdma.h svcrdma: Fix race between svc_rdma_recvfrom thread and the dto_tasklet 2008-08-13 16:57:31 -04:00
svc_xprt.h svc: Add svc_xprt_names service to replace svc_sock_names 2008-02-01 16:42:14 -05:00
svcauth.h IPv6 support for NFS server export caches 2008-04-23 16:13:36 -04:00
svcauth_gss.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
svcsock.h SUNRPC: Update RPC server's TCP record marker decoder 2008-04-23 16:13:43 -04:00
timer.h
types.h
xdr.h SUNRPC: Use unsigned string lengths in xdr_decode_string_inplace 2008-02-01 16:42:02 -05:00
xprt.h SUNRPC: Don't disconnect more than once if retransmitting NFSv4 requests 2008-04-19 16:55:12 -04:00
xprtrdma.h
xprtsock.h