diff options
author | Jeff Layton <[email protected]> | 2015-06-03 16:14:27 -0400 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2015-06-10 18:26:22 -0400 |
commit | 264d1df3b34804a7d440d77771020f616a573528 (patch) | |
tree | 56ff34b2f126117802326271f773f39a4a9b725d /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 8e2281330f9930bccf77cf04027ec60b6cc0fb34 (diff) |
sunrpc: if we're closing down a socket, clear memalloc on it first
We currently increment the memalloc_socks counter if we have a xprt that
is associated with a swapfile. That socket can be replaced however
during a reconnect event, and the memalloc_socks counter is never
decremented if that occurs.
When tearing down a xprt socket, check to see if the xprt is set up for
swapping and sk_clear_memalloc before releasing the socket if so.
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Chuck Lever <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions