diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-14 17:48:49 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-01-31 21:37:23 -0500 |
commit | fda1bfef9e465b28260d27cd9e538dd601c4cdc1 (patch) | |
tree | 125a5a8dbc027a9149d5ad4208bd27fe68a8009f /include | |
parent | 30c5116b113689c87a711a0963753adadd702c04 (diff) | |
download | blackbird-op-linux-fda1bfef9e465b28260d27cd9e538dd601c4cdc1.tar.gz blackbird-op-linux-fda1bfef9e465b28260d27cd9e538dd601c4cdc1.zip |
SUNRPC: Make freeing of struct xprt rcu-safe
Have it call kfree_rcu() to ensure that we can use it on rcu-protected
lists.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 1bdb59a2efe8..83218129ff28 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -257,6 +257,7 @@ struct rpc_xprt { struct dentry *debugfs; /* debugfs directory */ atomic_t inject_disconnect; #endif + struct rcu_head rcu; }; #if defined(CONFIG_SUNRPC_BACKCHANNEL) |