diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-02-18 23:14:40 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-16 13:34:29 +0100 |
commit | cf6605d1940a5ead7f2de78b5926f9c3179cda41 (patch) | |
tree | 3349ea80e11c3e57fd864c535ce7d7b0ff8b081d /fs/nfs/filelayout | |
parent | NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid() (diff) | |
download | linux-cf6605d1940a5ead7f2de78b5926f9c3179cda41.tar.xz linux-cf6605d1940a5ead7f2de78b5926f9c3179cda41.zip |
NFSv4: Ensure layout headers are RCU safe
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index c9b605f6c9cb..bd234394a87c 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -1146,7 +1146,7 @@ filelayout_alloc_layout_hdr(struct inode *inode, gfp_t gfp_flags) static void filelayout_free_layout_hdr(struct pnfs_layout_hdr *lo) { - kfree(FILELAYOUT_FROM_HDR(lo)); + kfree_rcu(FILELAYOUT_FROM_HDR(lo), generic_hdr.plh_rcu); } static struct pnfs_ds_commit_info * |