linux-stable/include/linux/sunrpc
Chuck Lever c5a4dd8b7c SUNRPC: Eliminate side effects from rpc_malloc
Currently rpc_malloc sets req->rq_buffer internally.  Make this a more
generic interface:  return a pointer to the new buffer (or NULL) and
make the caller set req->rq_buffer and req->rq_bufsize.  This looks much
more like kmalloc and eliminates the side effects.

To fix a potential deadlock, this patch also replaces GFP_NOFS with
GFP_NOWAIT in rpc_malloc.  This prevents async RPCs from sleeping outside
the RPC's task scheduler while allocating their buffer.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2007-04-30 22:17:11 -07:00
..
auth.h
auth_gss.h
cache.h
clnt.h SUNRPC: RPC buffer size estimates are too large 2007-04-30 22:17:10 -07:00
debug.h [PATCH] sysctl: move CTL_SUNRPC to sysctl.h where it belongs 2007-02-14 08:09:55 -08:00
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_spkm3.h
Kbuild
metrics.h
msg_prot.h
rpc_pipe_fs.h
sched.h SUNRPC: Eliminate side effects from rpc_malloc 2007-04-30 22:17:11 -07:00
stats.h
svc.h [PATCH] knfsd: remove CONFIG_IPV6 ifdefs from sunrpc server code 2007-03-06 09:30:26 -08:00
svcauth.h
svcauth_gss.h
svcsock.h [PATCH] knfsd: fix recently introduced problem with shutting down a busy NFS server 2007-03-06 09:30:26 -08:00
timer.h
types.h
xdr.h
xprt.h SUNRPC: Eliminate side effects from rpc_malloc 2007-04-30 22:17:11 -07:00