linux-uconsole/include/linux/lockd
Tim Gardner f25cc71e63 lockd: nlmclnt_reclaim(): avoid stack overflow
Even though nlmclnt_reclaim() is only one call into the stack frame,
928 bytes on the stack seems like a lot. Recode to dynamically
allocate the request structure once from within the reclaimer task,
then pass this pointer into nlmclnt_reclaim() for reuse on
subsequent calls.

smatch analysis:

fs/lockd/clntproc.c:620 nlmclnt_reclaim() warn: 'reqst' puts
 928 bytes on stack

Also remove redundant assignment of 0 after memset.

Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2013-02-15 11:29:38 -05:00
..
bind.h Lockd: pass network namespace to creation and destruction routines 2012-04-11 17:55:06 -04:00
debug.h
lockd.h lockd: nlmclnt_reclaim(): avoid stack overflow 2013-02-15 11:29:38 -05:00
nlm.h
share.h
xdr.h
xdr4.h SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00