Skip to content
Commit 24408f52 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

pNFS: Fix bugs in _pnfs_return_layout



We need to honour the NFS_LAYOUT_RETURN_REQUESTED bit regardless of
whether or not there are layout segments pending.
Furthermore, we should ensure that we leave the plh_return_segs list
empty.

This patch fixes a memory leak of the layout segments on plh_return_segs.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent fe1cf946
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment