]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS: Layoutreturn must free the layout after the layout-private data
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 7 Dec 2016 17:29:26 +0000 (12:29 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 7 Dec 2016 18:41:59 +0000 (13:41 -0500)
commit2f065ddb64193ebf9cd600395d4782287cd0f58e
tree3317f39d8df34fd64a5e8e47b47b14b91e61fe9f
parentcb067935175ca477380806dc80bf5f0bb51f6f71
pNFS: Layoutreturn must free the layout after the layout-private data

The layout-private data may depend on the layout and/or the inode
still existing when it does post-processing and frees its data, so we
need to free them after calling lrp->ld_private.ops->free().

This fixes a mirror list corruption issue in the flexfiles driver.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c