svcrdma: Use standard Linux lists for context cache
authorTom Tucker <tom@opengridcomputing.com>
Thu, 1 May 2008 01:44:39 +0000 (20:44 -0500)
committerTom Tucker <tom@opengridcomputing.com>
Mon, 19 May 2008 12:33:52 +0000 (07:33 -0500)
commit8740767376b32a7772607e1b2b07cde0c24120cc
tree62e9831548e0cdd2e70951a9ab9df4b93ca440aa
parent02e7452de74d308ca642f54f7e5ef801ced60a92
svcrdma: Use standard Linux lists for context cache

Replace the one-off linked list implementation used to implement the
context cache with the standard Linux list_head lists. Add a context
counter to catch resource leaks. A WARN_ON will be added later to
ensure that we've freed all contexts.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_transport.c