]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSv4.1/flexfiles: Fix freeing of mirrors
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Sep 2015 19:03:56 +0000 (12:03 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Sep 2015 19:18:57 +0000 (12:18 -0700)
commit972398fa0a5f47c6ee0bde4d6d24b29f90ec888d
tree377664e4207e4c2bd03f6ef29b3573e8016a4f0c
parent2d89a1d3c9ff8ceb115f001e66cff9788338ca47
NFSv4.1/flexfiles: Fix freeing of mirrors

Mirrors are now shared objects, so we should not be freeing them directly
inside ff_layout_free_lseg(). We should already be doing the right thing
in _ff_layout_free_lseg(), so just let it handle things.

Also ensure that ff_layout_free_mirror() frees the RPC credential if it
is set.

Fixes: 28a0d72c6867 ("Add refcounting to struct nfs4_ff_layout_mirror")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c